PT_GNU_STACK and PT_GNU_HEAP

Jeffrey Walton noloader@gmail.com
Sat Feb 11 23:42:00 GMT 2012


Hi All,

I'm looking for reading on PT_GNU_STACK and PT_GNU_HEAP. The Gentoo
documentation I have seen states GCC will add PT_GNU_STACK and
PT_GNU_HEAP markings to the binary if compiled from non-asm files. If
compiling ASM files, the markings are not added. The docs also state
PaX ignores the markings (PaX offers no-execute plus more).

Other than Gentoo documentation, I'm not finding much reading on GCC
and PT_GNU_STACK and PT_GNU_HEAP.

Does GCC have any reading on the topic? I don't ever recall seeing an
option similar to Microsoft's /GS.

Jeff



More information about the Gcc-help mailing list