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

2012-03-28 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52747 --- Comment #6 from Andreas Schwab 2012-03-28 16:27:48 UTC --- The trampoline is only referenced, but never used in your example.

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

2012-03-28 Thread noloader at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52747 --- Comment #5 from Jeffrey Walton 2012-03-28 14:52:29 UTC --- My apologies for the additional comments. $ checksec.sh --file ./warn-test.exe RELRO STACK CANARY NXPIE RPATH RUNPATH FILE Full RELR

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

2012-03-28 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52747 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4 f

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

2012-03-28 Thread noloader at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52747 --- Comment #3 from Jeffrey Walton 2012-03-28 14:33:38 UTC --- Ah, OK. -Wtrampolines works. But I'm not seeing a warning about the loss of no-exec stacks: int main(int argc, char* argv[]) { (void)argc; (void)argv; void foo() { print

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

2012-03-28 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52747 Eric Botcazou changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

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

2012-03-28 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52747 --- Comment #1 from Andreas Schwab 2012-03-28 07:17:44 UTC --- Only if you need to take the address of the function. Calling a nested function from within the containing function doesn't need a trampoline.