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