build: Add -fno-pie to the gcc flags when available
Reported-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
cb75c910a2
commit
99e3316d59
1
Makefile
1
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,)
|
||||
|
|
Loading…
Reference in New Issue