summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBipin Ravi <bipin.ravi@arm.com>2022-08-11 19:08:51 +0200
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2022-08-11 19:08:51 +0200
commit5d75d71570f3740aade7c3781cae996531193cd8 (patch)
treed5641ae6c0e0b350061b76793b6fd4f276fde82e /Makefile
parent8f23476e391a57ba8d6dbe781f4a5b012a117e40 (diff)
parent7b5924184566bcdcc01966905ffdcabcd6ea4b32 (diff)
downloadarm-trusted-firmware-5d75d71570f3740aade7c3781cae996531193cd8.tar.gz
Merge "fix(build): disable default PIE when linking" into integration
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2f426ee1c..d412078e5 100644
--- a/Makefile
+++ b/Makefile
@@ -601,6 +601,9 @@ endif
PIE_FOUND := $(findstring --enable-default-pie,${GCC_V_OUTPUT})
ifneq ($(PIE_FOUND),)
TF_CFLAGS += -fno-PIE
+ifneq ($(findstring gcc,$(notdir $(LD))),)
+ TF_LDFLAGS += -no-pie
+endif
endif
ifneq ($(findstring gcc,$(notdir $(LD))),)