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: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 Mar 2012 14:44:09 +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
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-28 14:44:09 UTC ---
The -Wtrampolines is that warning. Note that -Wl,-z,noexecstack is a user
error in that case, you are requesting the linker to override any automatic
deduction on whether trampolines are used or not, by promising they aren't
used, even when you actually use them. If you don't use -Wl,-z,noexecstack,
the compiler/assembler/linker will DTRT automatically, unless you have *.s/*.S
sources (those need to be tagged manually, or with -Wa,--noexecstack).