Fix for programs that store VirtualQueryEx results in signed integers (eg. The Borland Linker)

Alexandre Julliard julliard at winehq.org
Tue Mar 2 23:20:23 CST 2004


Troy Rollo <wine at troy.rollo.name> writes:

> +     * The problem with emulating this is that on Linux the top of the stack is at
> +     * 0xbfffffff and below, so reserving even the balance of this range would
> +     * artificially limit stack growth. We could move the stack, but it's too late
> +     * to do that here because there will be pointers to things on the stack
> +     * that will be affected - moving the stack would need to be done in main() in
> +     * loader/main.c, which would then be responsible for moving it back (this would
> +     * be done with mremap and subsequent adjustment to the stack pointer).

Actually we don't run on the main stack, so allocating the space above
0x80000000 would definitely be possible, the stack doesn't need to
grow there.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list