From e981b3133d6e2adab8e5db2dabd7ee8d6d04fdf0 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 5 Feb 2026 09:25:08 -0700 Subject: [PATCH] common-user: Drop __linux__ around .note.GNU-stack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é --- common-user/safe-syscall.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-user/safe-syscall.S b/common-user/safe-syscall.S index 74f7e35694..2f714cfbe8 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