summaryrefslogtreecommitdiffstats
path: root/src/arch/x86/core
diff options
context:
space:
mode:
authorGeert Stappers2023-06-30 11:59:59 +0200
committerMichael Brown2023-06-30 12:05:37 +0200
commite17568ad0642490143d0c6b154c874b9b9e285bf (patch)
treef1c70ecf61dbd0ee0ed60b266da02aec4de075ef /src/arch/x86/core
parent[build] Avoid using multiple target patterns in pattern rules (diff)
downloadipxe-e17568ad0642490143d0c6b154c874b9b9e285bf.tar.gz
ipxe-e17568ad0642490143d0c6b154c874b9b9e285bf.tar.xz
ipxe-e17568ad0642490143d0c6b154c874b9b9e285bf.zip
[build] Inhibit linker warnings about an implied executable stack
Signed-off-by: Geert Stappers <stappers@stappers.it> Modified-by: Michael Brown <mcb30@ipxe.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/x86/core')
-rw-r--r--src/arch/x86/core/patch_cf.S1
-rw-r--r--src/arch/x86/core/stack.S1
-rw-r--r--src/arch/x86/core/stack16.S1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/x86/core/patch_cf.S b/src/arch/x86/core/patch_cf.S
index 4365563f..63730c3f 100644
--- a/src/arch/x86/core/patch_cf.S
+++ b/src/arch/x86/core/patch_cf.S
@@ -22,6 +22,7 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
+ .section ".note.GNU-stack", "", @progbits
.text
.arch i386
.code16
diff --git a/src/arch/x86/core/stack.S b/src/arch/x86/core/stack.S
index baa19ff8..49345347 100644
--- a/src/arch/x86/core/stack.S
+++ b/src/arch/x86/core/stack.S
@@ -1,5 +1,6 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
+ .section ".note.GNU-stack", "", @progbits
.arch i386
#ifdef __x86_64__
diff --git a/src/arch/x86/core/stack16.S b/src/arch/x86/core/stack16.S
index ad67e4f2..d3949a55 100644
--- a/src/arch/x86/core/stack16.S
+++ b/src/arch/x86/core/stack16.S
@@ -1,5 +1,6 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
+ .section ".note.GNU-stack", "", @progbits
.arch i386
/****************************************************************************