From: Kevin O'Connor Date: Tue, 25 Oct 2016 16:09:41 +0000 (-0400) Subject: build: Add -fno-pie to the gcc flags when available X-Git-Tag: rel-1.10.0~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=99e3316d5970dbcdac8ce7bb0f89f0986d01c0ce;p=seabios.git build: Add -fno-pie to the gcc flags when available Reported-by: Paul Menzel Signed-off-by: Kevin O'Connor --- diff --git a/Makefile b/Makefile index 1916ecf..3b94ee0 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,7 @@ COMMONCFLAGS := -I$(OUT) -Isrc -Os -MD -g \ -freg-struct-return -ffreestanding -fno-delete-null-pointer-checks \ -ffunction-sections -fdata-sections -fno-common -fno-merge-constants COMMONCFLAGS += $(call cc-option,$(CC),-nopie,) +COMMONCFLAGS += $(call cc-option,$(CC),-fno-pie,) COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,) COMMONCFLAGS += $(call cc-option,$(CC),-fstack-check=no,)