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>
This commit is contained in:
Warner Losh
2026-02-05 09:25:08 -07:00
parent 2c4cc8b61d
commit e981b3133d

View File

@@ -22,6 +22,6 @@
* assembly needs an executable stack and the whole QEMU binary will * assembly needs an executable stack and the whole QEMU binary will
* needlessly end up with one. This should be the last thing in this file. * needlessly end up with one. This should be the last thing in this file.
*/ */
#if defined(__linux__) && defined(__ELF__) #if defined(__ELF__)
.section .note.GNU-stack, "", %progbits .section .note.GNU-stack, "", %progbits
#endif #endif