]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
common-user: Drop __linux__ around .note.GNU-stack
authorWarner Losh <imp@bsdimp.com>
Thu, 5 Feb 2026 16:25:08 +0000 (09:25 -0700)
committerWarner Losh <imp@bsdimp.com>
Mon, 2 Mar 2026 03:49:39 +0000 (20:49 -0700)
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>
common-user/safe-syscall.S

index 74f7e35694fc7312b0966984112f65ab014a265a..2f714cfbe86601eae59e74e53ef44343f3f8e33e 100644 (file)
@@ -22,6 +22,6 @@
  * 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.
  */
-#if defined(__linux__) && defined(__ELF__)
+#if defined(__ELF__)
 .section        .note.GNU-stack, "", %progbits
 #endif