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

Reply via email to