ntdll: prevent test from crashing on amd64

Peter Beutner p.beutner at gmx.net
Wed Nov 15 10:33:05 CST 2006


Marcus Meissner schrieb:
> On Mon, Nov 13, 2006 at 08:54:33AM +0100, Peter Beutner wrote:
>> Putting code in the .data section means it will be mapped RW only, causing
>> segfaults when trying to execute it (at least on NX-capable systems).
>>
>> As a quick workaround mark it const, i.e. put it into the .rodata section
>> which seems to be always mapped executable for ELF files(for whatever reasons).
>>
>> (It still doesn't work though if you crosscompile the test.)
> 
> The previous code also in this file does the same thing, so it would
> be fine by me.
seems Alexandre disagrees :(



More information about the wine-devel mailing list