|
From: | hjl.tools at gmail dot com |
Subject: | [Bug ld/29072] ld silently make the program stack area executable if nested function is used |
Date: | Mon, 25 Apr 2022 15:12:31 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=29072 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEW --- Comment #13 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to H.J. Lu from comment #12) > I don't think we should issue a warning in this case: > > [hjl@gnu-cfl-1 ld]$ cat /tmp/x.s > .text > .globl main > main: > .nops 1 > .section .note.GNU-stack,"x",@progbits > [hjl@gnu-cfl-1 ld]$ gcc -c /tmp/x.s > [hjl@gnu-cfl-1 ld]$ ./ld-new -e main x.o > ./ld-new: warning: x.o: requires executable stack (because the > .note.GNU-stack section is executable) > [hjl@gnu-cfl-1 ld]$ Shouldn't compiler issue the warning instead? -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |