exec-shield workaround take 3
Mike McCormack
mike at codeweavers.com
Tue Apr 13 11:31:46 CDT 2004
Peter Riocreux wrote:
>> vars.pe_size = 0x01000000;
>> vars.pe_address = (void*)0x00400000;
>>// wld_reserve_wine_memory( pe_file, &vars.pe_address, &vars.pe_size );
>> mmap( vars.pe_address, vars.pe_size, PROT_NONE,
>> MAP_FIXED|MAP_PRIVATE|MAP_ANON, -1, 0);
>
>
> Is this a get-it-working-again fix, or the correct answer?
Well, instead of trying to reserve just the area that will be needed by
the windows exe, it reserves a huge chunk of memory, which is safe
enough, but just a little inexact. Things should work fine with the
above modification.
Mike
More information about the wine-devel
mailing list