common-user: Drop __linux__ around .note.GNU-stack
GNU-stack tagging is a toolchain issue, not an OS issue. All the toolchains require this for ELF. Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Warner Losh committed
Feb 5, 2026 at 09:25 UTC
e981b3133d6e2adab8e5db2dabd7ee8d6d04fdf0
1 file changed
+1
-1
common-user/safe-syscall.S
+1
-1
@@ -22,6 +22,6 @@
22
* assembly needs an executable stack and the whole QEMU binary will
23
* needlessly end up with one. This should be the last thing in this file.
24
*/
25
-#if defined(__linux__) && defined(__ELF__)
25
+#if defined(__ELF__)
26
.section .note.GNU-stack, "", %progbits
27
#endif