[Bug c/52747] No warning from toolchain with nested function and --noexecstack

noloader at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Mar 28 14:54:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52747

--- Comment #5 from Jeffrey Walton <noloader at gmail dot com> 2012-03-28 14:52:29 UTC ---
My apologies for the additional comments.

$ checksec.sh --file ./warn-test.exe 
RELRO           STACK CANARY      NX            PIE             RPATH     
RUNPATH      FILE
Full RELRO      Canary found      NX enabled    No PIE          No RPATH   No
RUNPATH   ./warn-test.exe

So, it appears I have a trampoline, and NX is enabled? When I run the program,
I do not segfault:

And PIE caught me off guard considering -fPIE and:
$ cat /proc/sys/kernel/randomize_va_space 
2



More information about the Gcc-bugs mailing list