Re: Non-executable stack patch

Solar Designer (solar@false.com)
Wed, 11 Jun 1997 06:40:28 -0300 (GMT+3)


Hello!

> > It is to map libc at 0x00001000+ so there's always a zero byte in the
> ^^^^^^^^^^
> Which definitively will break dosemu and all other VM86 stuff.

You're right, this needs to be changed to 0x00110000, now dosemu runs fine.
This still leaves almost 15 Mb until we get an address without a zero byte
in it, which seems quite enough for now.

Also, such a change is only useful for ELF binaries, so I'll add a check for
that. The new header flag defined in my non-executable stack patch will also
affect mmap(), just in case some program will not like my patch.

Signed,
Solar Designer