This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]