From e17568ad0642490143d0c6b154c874b9b9e285bf Mon Sep 17 00:00:00 2001 From: Geert Stappers Date: Fri, 30 Jun 2023 10:59:59 +0100 Subject: [build] Inhibit linker warnings about an implied executable stack Signed-off-by: Geert Stappers Modified-by: Michael Brown Signed-off-by: Michael Brown --- src/arch/x86_64/core/gdbidt.S | 1 + src/arch/x86_64/core/setjmp.S | 1 + 2 files changed, 2 insertions(+) (limited to 'src/arch/x86_64') diff --git a/src/arch/x86_64/core/gdbidt.S b/src/arch/x86_64/core/gdbidt.S index 89280bf89..477492b47 100644 --- a/src/arch/x86_64/core/gdbidt.S +++ b/src/arch/x86_64/core/gdbidt.S @@ -38,6 +38,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #define SIGFPE 8 #define SIGSTKFLT 16 + .section ".note.GNU-stack", "", @progbits .section ".text.gdbmach_interrupt", "ax", @progbits .code64 diff --git a/src/arch/x86_64/core/setjmp.S b/src/arch/x86_64/core/setjmp.S index e43200d7b..5137a72c1 100644 --- a/src/arch/x86_64/core/setjmp.S +++ b/src/arch/x86_64/core/setjmp.S @@ -1,5 +1,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) + .section ".note.GNU-stack", "", @progbits .text .code64 -- cgit v1.2.3-55-g7522