Merge "fix(build): disable default PIE when linking" into integration
diff --git a/Makefile b/Makefile
index 2f426ee..d412078 100644
--- a/Makefile
+++ b/Makefile
@@ -601,6 +601,9 @@
 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))),)