aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2024-02-24 19:26:06 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2024-04-16 08:49:37 +0100
commit6dec37fdc78f263d5c606f26c67a304774aa2236 (patch)
tree662d8fcf10827769b7b1d82d7c1ed6a039964ed1
parentd17d4efab93ca0b376dfd9ee9bd065c7f1db9e39 (diff)
downloadopenbios-6dec37fdc78f263d5c606f26c67a304774aa2236.zip
openbios-6dec37fdc78f263d5c606f26c67a304774aa2236.tar.gz
openbios-6dec37fdc78f263d5c606f26c67a304774aa2236.tar.bz2
Tell linker that stack is not executable
Eliminates following warning from linker: powerpc-unknown-linux-gnu-ld: warning: crtsavres.o: missing .note.GNU-stack section implies executable stack powerpc-unknown-linux-gnu-ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker Signed-off-by: Amadeusz Sławiński <amade@asmblr.net> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r--arch/ppc/build.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/ppc/build.xml b/arch/ppc/build.xml
index e606313..9415376 100644
--- a/arch/ppc/build.xml
+++ b/arch/ppc/build.xml
@@ -146,7 +146,7 @@
<executable name="openbios-briq.elf" target="target" condition="BRIQ">
<rule>
- $(call quiet-command,$(LD) -g -Ttext=0x01e01000 -Bstatic $^ $(shell $(CC) -print-libgcc-file-name) -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
+ $(call quiet-command,$(LD) -g -z noexecstack -Ttext=0x01e01000 -Bstatic $^ $(shell $(CC) -print-libgcc-file-name) -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
$(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-briq.syms," GEN $(TARGET_DIR)$@.syms")
$(call quiet-command,$(STRIP) $@.nostrip -o $@," STRIP $(TARGET_DIR)$@")</rule>
<object source="start.S"/>
@@ -162,7 +162,7 @@
<executable name="openbios-pearpc.elf" target="target" condition="PEARPC">
<rule>
- $(call quiet-command,$(LD) -g -Ttext=0x01e01000 -Bstatic $^ $(shell $(CC) -print-libgcc-file-name) -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
+ $(call quiet-command,$(LD) -g -z noexecstack -Ttext=0x01e01000 -Bstatic $^ $(shell $(CC) -print-libgcc-file-name) -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
$(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-pearpc.syms," GEN $(TARGET_DIR)$@.syms")
$(call quiet-command,$(STRIP) $@.nostrip -o $@," STRIP $(TARGET_DIR)$@")</rule>
<object source="start.S"/>
@@ -178,7 +178,7 @@
<executable name="openbios-qemu.elf" target="target" condition="QEMU">
<rule>
- $(call quiet-command,$(LD) --warn-common -N -T $(SRCDIR)/arch/$(ARCH)/qemu/ldscript -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
+ $(call quiet-command,$(LD) --warn-common -z noexecstack -N -T $(SRCDIR)/arch/$(ARCH)/qemu/ldscript -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
$(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-qemu.syms," GEN $(TARGET_DIR)$@.syms")
$(call quiet-command,$(STRIP) $@.nostrip -o $@," STRIP $(TARGET_DIR)$@")</rule>
<object source="qemu/start.S"/>
@@ -197,7 +197,7 @@
<executable name="openbios-mol.elf" target="target" condition="MOL">
<rule>
- $(call quiet-command,$(LD) -g -Ttext=0x01e01000 -Bstatic $^ $(shell $(CC) -print-libgcc-file-name) -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
+ $(call quiet-command,$(LD) -g -z noexecstack -Ttext=0x01e01000 -Bstatic $^ $(shell $(CC) -print-libgcc-file-name) -o $@.nostrip --whole-archive $^," LINK $(TARGET_DIR)$@")
$(call quiet-command,$(NM) $@.nostrip | sort > $(ODIR)/openbios-mol.syms," GEN $(TARGET_DIR)$@.syms")
$(call quiet-command,$(STRIP) $@.nostrip -o $@," STRIP $(TARGET_DIR)$@")</rule>
<object source="start.S"/>