This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52747] No warning from toolchain with nested function and --noexecstack
- From: "noloader at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 Mar 2012 14:52:29 +0000
- Subject: [Bug c/52747] No warning from toolchain with nested function and --noexecstack
- Auto-submitted: auto-generated
- References: <bug-52747-4@http.gcc.gnu.org/bugzilla/>
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