]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Inhibit linker warnings about an implied executable stack 899/head
authorGeert Stappers <stappers@stappers.it>
Fri, 30 Jun 2023 09:59:59 +0000 (10:59 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 30 Jun 2023 10:05:37 +0000 (11:05 +0100)
Signed-off-by: Geert Stappers <stappers@stappers.it>
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
32 files changed:
src/arch/arm64/core/setjmp.S
src/arch/i386/core/gdbidt.S
src/arch/i386/core/setjmp.S
src/arch/i386/tests/gdbstub_test.S
src/arch/x86/core/patch_cf.S
src/arch/x86/core/stack.S
src/arch/x86/core/stack16.S
src/arch/x86/drivers/net/undiisr.S
src/arch/x86/interface/pcbios/e820mangler.S
src/arch/x86/interface/pxe/pxe_entry.S
src/arch/x86/interface/syslinux/com32_wrapper.S
src/arch/x86/prefix/bootpart.S
src/arch/x86/prefix/dskprefix.S
src/arch/x86/prefix/exeprefix.S
src/arch/x86/prefix/hdprefix.S
src/arch/x86/prefix/libprefix.S
src/arch/x86/prefix/lkrnprefix.S
src/arch/x86/prefix/mbr.S
src/arch/x86/prefix/mromprefix.S
src/arch/x86/prefix/nbiprefix.S
src/arch/x86/prefix/nullprefix.S
src/arch/x86/prefix/pxeprefix.S
src/arch/x86/prefix/rawprefix.S
src/arch/x86/prefix/romprefix.S
src/arch/x86/prefix/undiloader.S
src/arch/x86/prefix/unlzma.S
src/arch/x86/prefix/usbdisk.S
src/arch/x86/transitions/liba20.S
src/arch/x86/transitions/libkir.S
src/arch/x86/transitions/librm.S
src/arch/x86_64/core/gdbidt.S
src/arch/x86_64/core/setjmp.S

index fa47aa0afa088fcffc91358dbb1770c5ae8dbaff..c5c77c1fb9afd916d71b8a1f59c96d7296a841bd 100644 (file)
@@ -1,5 +1,6 @@
 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
+       .section ".note.GNU-stack", "", %progbits
        .text
 
        /* Must match jmp_buf structure layout */
index 666ecce3ca5eee7471ae498933c651afd85b7480..78945c62cf4059b9c3b178fa52d46579174a2609 100644 (file)
@@ -9,6 +9,7 @@
  * Interrupt handlers
  ****************************************************************************
  */
+       .section ".note.GNU-stack", "", @progbits
        .section ".text", "ax", @progbits
        .code32
 
index 81d3b491153884a0171a0447c856dd98192973ef..e0bbb7ef8518dc6de32b1460481642f3741aac82 100644 (file)
@@ -1,5 +1,6 @@
 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .code32
index 739b0527abb4de16846a1a28e0c67a62f95d4cad..e0c9e6c9a513a9978dde6ac69e8551e474125981 100644 (file)
@@ -1,3 +1,4 @@
+       .section ".note.GNU-stack", "", @progbits
        .arch i386
 
        .section ".data", "aw", @progbits
index 4365563fe67b3dc787a79048e1f3e59db3745334..63730c3fd6156f734a8c08fcd9d131d3a3da8009 100644 (file)
@@ -22,6 +22,7 @@
 
 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .code16
index baa19ff8431b182d92f04ed705c0a44bfb5d04a1..493453473c01f57ce9ec222690bbcf1c0c0ec29f 100644 (file)
@@ -1,5 +1,6 @@
 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
+       .section ".note.GNU-stack", "", @progbits
        .arch i386
 
 #ifdef __x86_64__
index ad67e4f2d17e93da2e48b1e3b011b3d8062dd0e3..d3949a55797c6f86ee90a838533652a4a7ca641b 100644 (file)
@@ -1,5 +1,6 @@
 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
+       .section ".note.GNU-stack", "", @progbits
        .arch i386
 
 /****************************************************************************
index 2428d1f5d0a66f413500c7bc2bae891d2ff5bd49..a1098b8396e130de1ac3d16a10d89477ff5d481a 100644 (file)
@@ -10,6 +10,7 @@ FILE_LICENCE ( GPL2_OR_LATER )
 #define PIC1_ICR 0x20
 #define PIC2_ICR 0xa0
        
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .code16
index 296a6488bb3e94c9f97e32bbfb7dd34404bed5b7..46e1cab4d3d69f413b188ea4d77ab6ba811b612f 100644 (file)
@@ -23,6 +23,7 @@
 
 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .code16
index 3a5a100e33bcbaff89d11b58384ce5f99fa78628..354dd1b35420e2b6f357ecedb89f8bbe1ddb5765 100644 (file)
@@ -26,6 +26,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
 #include <librm.h>
 
+       .section ".note.GNU-stack", "", @progbits
        .arch i386
 
 /****************************************************************************
index d59a3392c2cc4dfca75c1858780f106510769634..5019195653185e62ec76fcbf5507d1db26f2e2a5 100644 (file)
@@ -21,6 +21,7 @@ FILE_LICENCE ( GPL2_OR_LATER )
 
 #include "librm.h"
 
+       .section ".note.GNU-stack", "", @progbits
        .text
 
        .code32
index 6d0c6034a459d2a3f76ff52a0c7939e7c0e73ef6..575cb1c07182ec690baca8d754ebcd82f61e89f3 100644 (file)
@@ -5,6 +5,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 #define STACK_SEG      0x0200
 #define STACK_SIZE     0x2000
        
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .section ".prefix", "awx", @progbits
index 0503f113d0c574ddc83dc0d03aa1415f16db2dbf..bc19488798674d1be687bac1108b0fb5db05a2b9 100644 (file)
@@ -24,6 +24,7 @@ FILE_LICENCE ( GPL2_ONLY )
 
 .equ   SYSSEG, 0x1000                  /* system loaded at SYSSEG<<4 */
 
+       .section ".note.GNU-stack", "", @progbits
        .org    0
        .arch i386
        .text
index 0eab8c12ae5d11a322147a8b6690d8c50d93b177..5b2605e8df7220bb37c9ef6e9efab5fe34ad818c 100644 (file)
@@ -36,6 +36,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 #define PSP_CMDLINE_LEN 0x80
 #define PSP_CMDLINE_START 0x81
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .org 0
index 28c8a532d2f9cfc2f61ebcada4ea3ab276ca393f..fbf8d2e47d855baf1b8d1827371c8332a759ac34 100644 (file)
@@ -2,6 +2,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
 #include <librm.h>
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .section ".prefix", "awx", @progbits
index d7f26195719c98b5d834d9b99b561825fbb28b6c..380e471dddeb601f4d86913ef44a7d47b7edb02e 100644 (file)
@@ -26,6 +26,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
 #include <librm.h>
 
+       .section ".note.GNU-stack", "", @progbits
        .arch i386
 
 /* Image compression enabled */
index 922181f0e9918ffef66126c0167fda86fc9d89c8..2c17f79df755b99d4e87422048b999dd29f52726 100644 (file)
@@ -4,6 +4,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
 #define BZI_LOAD_HIGH_ADDR 0x100000
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .code16
index 032c0e775f12021ad6772c2198084e6fa0cb53f7..928bb338bcbbc6d84428941bb5b4b80ea30e0f88 100644 (file)
@@ -1,5 +1,6 @@
 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .section ".prefix", "awx", @progbits
index d08284d7a84ad7ff120f01bde15ba5cb6832a68f..5f3496b284d18d7d6830bac544109c50a06a9118 100644 (file)
@@ -41,6 +41,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 #define _pcirom_start _mrom_start
 #include "pciromprefix.S"
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .code16
index de38e4af6e1b87b9615b85e63fb602122e2723c0..cae1009b3e37e76a063ad3d04386e015fae4d6b7 100644 (file)
@@ -2,6 +2,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
 #include <librm.h>
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .code16
index bd0ff339e8d7e9250e06606927c18116a76614c7..1568188d0753bd070e892947f16d73bac4ef1379 100644 (file)
@@ -1,5 +1,6 @@
 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
+       .section ".note.GNU-stack", "", @progbits
        .org    0
        .text
        .arch i386
index 52ea18039279791bddc5a90d680cbeaa8810658c..494fbc138e970e1cecc902596b70371a2720b83b 100644 (file)
@@ -11,6 +11,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
 #define PXE_HACK_EB54                  0x0001
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .org 0
index 4cf5f391e0d6f40e84209bc529cb686a8d580146..4a3d350423120f0301cb72401f6558ed8154d808 100644 (file)
@@ -8,6 +8,7 @@
 
 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .org 0
index 4e8793c216f65c2f9a717f733c05b2c892911279..79fed2a3505d97f52404f508a9b3514c9afa741e 100644 (file)
@@ -54,6 +54,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 #define BUSTYPE "PCIR"
 #endif
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .code16
        .arch i386
index 1d77110e7cc3a62bb99217395458b1f0cf74165a..e544d5048fd3abd8d498cb3f87ea04c16a6176c4 100644 (file)
@@ -2,6 +2,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
 #include <librm.h>
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .code16
        .arch i386
index 979f699eeeb83c87034434cc200fe8bdb7fc7a7d..f4bd81bd2d3aa8c859a94e54bd7acec4fadb5f17 100644 (file)
@@ -43,6 +43,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  ****************************************************************************
  */
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i486
        .section ".prefix.lib", "ax", @progbits
index 977de6dd63bea641dc776838b5baef6f439a7fc0..461a08379ddece24d7bb15be04756221492f2890 100644 (file)
@@ -2,6 +2,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
 #include <config/console.h>
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .section ".prefix", "awx", @progbits
index 57603353e8d8f2e17954ea0d7a54b863d2b9c657..6c1bac672e10ca81ef16cec3cd8fb26fc1e60ea0 100644 (file)
@@ -24,6 +24,7 @@
 
 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
+       .section ".note.GNU-stack", "", @progbits
        .arch i386
 
 /****************************************************************************
index fa9459d52f1bb281b40428be358b9eda220f8e1d..af090b266083ad5b79819f9a5852125607f403a7 100644 (file)
@@ -31,6 +31,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 /* Breakpoint for when debugging under bochs */
 #define BOCHSBP xchgw %bx, %bx
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .arch i386
        .section ".text16", "awx", @progbits
index 5dacb9b045a8cdc1e1425c8b5834bec94455469a..3943132466a8c4cbb3f1785c4b2de9107f8b4a80 100644 (file)
@@ -83,6 +83,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 #define if64 if 0
 #endif
 
+       .section ".note.GNU-stack", "", @progbits
+
 /****************************************************************************
  * Global descriptor table
  *
index 89280bf8982c4be733e7de77aa00b1ed308cc39e..477492b4729396778b2ab75f173c677cb3d12166 100644 (file)
@@ -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
 
index e43200d7b6cfb757e25db1b908d2a620d61565f7..5137a72c1dbfe147689edff4fde460fe9facaf47 100644 (file)
@@ -1,5 +1,6 @@
 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
 
+       .section ".note.GNU-stack", "", @progbits
        .text
        .code64