From: Warner Losh Date: Thu, 5 Feb 2026 16:25:08 +0000 (-0700) Subject: common-user: Drop __linux__ around .note.GNU-stack X-Git-Tag: v11.0.0-rc0~42^2~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e981b3133d6e2adab8e5db2dabd7ee8d6d04fdf0;p=thirdparty%2Fqemu.git 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 Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- diff --git a/common-user/safe-syscall.S b/common-user/safe-syscall.S index 74f7e35694f..2f714cfbe86 100644 --- a/common-user/safe-syscall.S +++ b/common-user/safe-syscall.S @@ -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