[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>
pull/899/head
Geert Stappers 2023-06-30 10:59:59 +01:00 committed by Michael Brown
parent 2524a60550
commit e17568ad06
32 changed files with 33 additions and 0 deletions

View File

@ -1,5 +1,6 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.section ".note.GNU-stack", "", %progbits
.text .text
/* Must match jmp_buf structure layout */ /* Must match jmp_buf structure layout */

View File

@ -9,6 +9,7 @@
* Interrupt handlers * Interrupt handlers
**************************************************************************** ****************************************************************************
*/ */
.section ".note.GNU-stack", "", @progbits
.section ".text", "ax", @progbits .section ".text", "ax", @progbits
.code32 .code32

View File

@ -1,5 +1,6 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.code32 .code32

View File

@ -1,3 +1,4 @@
.section ".note.GNU-stack", "", @progbits
.arch i386 .arch i386
.section ".data", "aw", @progbits .section ".data", "aw", @progbits

View File

@ -22,6 +22,7 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.code16 .code16

View File

@ -1,5 +1,6 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.section ".note.GNU-stack", "", @progbits
.arch i386 .arch i386
#ifdef __x86_64__ #ifdef __x86_64__

View File

@ -1,5 +1,6 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.section ".note.GNU-stack", "", @progbits
.arch i386 .arch i386
/**************************************************************************** /****************************************************************************

View File

@ -10,6 +10,7 @@ FILE_LICENCE ( GPL2_OR_LATER )
#define PIC1_ICR 0x20 #define PIC1_ICR 0x20
#define PIC2_ICR 0xa0 #define PIC2_ICR 0xa0
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.code16 .code16

View File

@ -23,6 +23,7 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.code16 .code16

View File

@ -26,6 +26,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#include <librm.h> #include <librm.h>
.section ".note.GNU-stack", "", @progbits
.arch i386 .arch i386
/**************************************************************************** /****************************************************************************

View File

@ -21,6 +21,7 @@ FILE_LICENCE ( GPL2_OR_LATER )
#include "librm.h" #include "librm.h"
.section ".note.GNU-stack", "", @progbits
.text .text
.code32 .code32

View File

@ -5,6 +5,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#define STACK_SEG 0x0200 #define STACK_SEG 0x0200
#define STACK_SIZE 0x2000 #define STACK_SIZE 0x2000
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.section ".prefix", "awx", @progbits .section ".prefix", "awx", @progbits

View File

@ -24,6 +24,7 @@ FILE_LICENCE ( GPL2_ONLY )
.equ SYSSEG, 0x1000 /* system loaded at SYSSEG<<4 */ .equ SYSSEG, 0x1000 /* system loaded at SYSSEG<<4 */
.section ".note.GNU-stack", "", @progbits
.org 0 .org 0
.arch i386 .arch i386
.text .text

View File

@ -36,6 +36,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#define PSP_CMDLINE_LEN 0x80 #define PSP_CMDLINE_LEN 0x80
#define PSP_CMDLINE_START 0x81 #define PSP_CMDLINE_START 0x81
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.org 0 .org 0

View File

@ -2,6 +2,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#include <librm.h> #include <librm.h>
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.section ".prefix", "awx", @progbits .section ".prefix", "awx", @progbits

View File

@ -26,6 +26,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#include <librm.h> #include <librm.h>
.section ".note.GNU-stack", "", @progbits
.arch i386 .arch i386
/* Image compression enabled */ /* Image compression enabled */

View File

@ -4,6 +4,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#define BZI_LOAD_HIGH_ADDR 0x100000 #define BZI_LOAD_HIGH_ADDR 0x100000
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.code16 .code16

View File

@ -1,5 +1,6 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.section ".prefix", "awx", @progbits .section ".prefix", "awx", @progbits

View File

@ -41,6 +41,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#define _pcirom_start _mrom_start #define _pcirom_start _mrom_start
#include "pciromprefix.S" #include "pciromprefix.S"
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.code16 .code16

View File

@ -2,6 +2,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#include <librm.h> #include <librm.h>
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.code16 .code16

View File

@ -1,5 +1,6 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.section ".note.GNU-stack", "", @progbits
.org 0 .org 0
.text .text
.arch i386 .arch i386

View File

@ -11,6 +11,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#define PXE_HACK_EB54 0x0001 #define PXE_HACK_EB54 0x0001
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.org 0 .org 0

View File

@ -8,6 +8,7 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.org 0 .org 0

View File

@ -54,6 +54,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#define BUSTYPE "PCIR" #define BUSTYPE "PCIR"
#endif #endif
.section ".note.GNU-stack", "", @progbits
.text .text
.code16 .code16
.arch i386 .arch i386

View File

@ -2,6 +2,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#include <librm.h> #include <librm.h>
.section ".note.GNU-stack", "", @progbits
.text .text
.code16 .code16
.arch i386 .arch i386

View File

@ -43,6 +43,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
**************************************************************************** ****************************************************************************
*/ */
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i486 .arch i486
.section ".prefix.lib", "ax", @progbits .section ".prefix.lib", "ax", @progbits

View File

@ -2,6 +2,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#include <config/console.h> #include <config/console.h>
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.section ".prefix", "awx", @progbits .section ".prefix", "awx", @progbits

View File

@ -24,6 +24,7 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.section ".note.GNU-stack", "", @progbits
.arch i386 .arch i386
/**************************************************************************** /****************************************************************************

View File

@ -31,6 +31,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
/* Breakpoint for when debugging under bochs */ /* Breakpoint for when debugging under bochs */
#define BOCHSBP xchgw %bx, %bx #define BOCHSBP xchgw %bx, %bx
.section ".note.GNU-stack", "", @progbits
.text .text
.arch i386 .arch i386
.section ".text16", "awx", @progbits .section ".text16", "awx", @progbits

View File

@ -83,6 +83,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
#define if64 if 0 #define if64 if 0
#endif #endif
.section ".note.GNU-stack", "", @progbits
/**************************************************************************** /****************************************************************************
* Global descriptor table * Global descriptor table
* *

View File

@ -38,6 +38,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#define SIGFPE 8 #define SIGFPE 8
#define SIGSTKFLT 16 #define SIGSTKFLT 16
.section ".note.GNU-stack", "", @progbits
.section ".text.gdbmach_interrupt", "ax", @progbits .section ".text.gdbmach_interrupt", "ax", @progbits
.code64 .code64

View File

@ -1,5 +1,6 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ) FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.section ".note.GNU-stack", "", @progbits
.text .text
.code64 .code64