[PATCH] build: do not produce a dynamically linked position independent executable

Bertrand Jacquin bertrand at jacquin.bzh
Sat Apr 25 16:15:03 CEST 2020


---
 rules.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/rules.mk b/rules.mk
index 23d55f677f58..5ff80d86509b 100644
--- a/rules.mk
+++ b/rules.mk
@@ -63,6 +63,9 @@ MCFLAGS   += -specs=nosys.specs
 # Do not use the standard system startup files when linking
 MCFLAGS   += -nostartfiles
 
+# Don't produce a dynamically linked position independent executable
+MCFLAGS   += -no-pie
+
 MCFLAGS   += -mcpu=$(MCU)
 LDFLAGS   += $(MCFLAGS) -T$(LDSCRIPT) \
             -Wl,-Map=$(BUILDDIR)/$(PROJECT).map,--cref,--no-warn-mismatch,--gc-sections



More information about the Gnuk-users mailing list