mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 18:14:24 +00:00
Merge "fix(build): disable default PIE when linking" into integration
This commit is contained in:
commit
5d75d71570
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -601,6 +601,9 @@ endif
|
||||||
PIE_FOUND := $(findstring --enable-default-pie,${GCC_V_OUTPUT})
|
PIE_FOUND := $(findstring --enable-default-pie,${GCC_V_OUTPUT})
|
||||||
ifneq ($(PIE_FOUND),)
|
ifneq ($(PIE_FOUND),)
|
||||||
TF_CFLAGS += -fno-PIE
|
TF_CFLAGS += -fno-PIE
|
||||||
|
ifneq ($(findstring gcc,$(notdir $(LD))),)
|
||||||
|
TF_LDFLAGS += -no-pie
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(findstring gcc,$(notdir $(LD))),)
|
ifneq ($(findstring gcc,$(notdir $(LD))),)
|
||||||
|
|
Loading…
Add table
Reference in a new issue