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.
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
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
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52747
Eric Botcazou changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
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.