From d04df84b76b4c45039e625dfa80ffcc2d0534c7d Mon Sep 17 00:00:00 2001 From: Armin Wolf Date: Sun, 28 Jan 2024 04:43:42 +0100 Subject: [PATCH] cpu/native: Fix executable stack warning The tramp assembly was missing a `.note.GNU-stack` section, meaning the compiler was forced to assume that we require an executable stack. Fix this by adding the necessary section. Signed-off-by: Armin Wolf --- cpu/native/tramp.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpu/native/tramp.S b/cpu/native/tramp.S index 86a16ad02b..4d908610cd 100644 --- a/cpu/native/tramp.S +++ b/cpu/native/tramp.S @@ -93,3 +93,7 @@ _native_sig_leave_handler: movl $0x0, _native_in_isr ret #endif + +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif