Merge "fix(build): disable default PIE when linking" into integration

This commit is contained in:
Bipin Ravi 2022-08-11 19:08:51 +02:00 committed by TrustedFirmware Code Review
commit 5d75d71570

View file

@ -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))),)