|
From: Tom H. <to...@co...> - 2005-11-17 00:25:15
|
In message <200...@ja...>
sv...@va... wrote:
> /* We make the data segment (heap) executable because LinuxThreads on
> - ppc32 creates trampolines in this area. */
> + ppc32 creates trampolines in this area. Also, on x86/Linux the data
> + segment is RWX natively, at least according to /proc/self/maps.
> + Also, having a non-executable data seg would kill any program which
> + tried to create code in the data seg and then run it. */
Not on my x86 boxes it isn't:
dunsmere [~] % cat /proc/self/maps
...
0820c000-0822d000 rw-p 0820c000 00:00 0 [heap]
Don't forget that you can't generally trust X bit reports on x86
systems anyway.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|