summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorManish Pandey <manish.pandey2@arm.com>2023-02-14 17:09:35 +0100
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2023-02-14 17:09:35 +0100
commitbe2a05058311855d8648d6682cd393ccf232a4e8 (patch)
tree0bc5afc57d3b6d6b8a68bcafc7e41f8f5903cf1d /Makefile
parent23af5965e967d12f337229cde707811f8ae2d893 (diff)
parentebac6922d1f6fc16c5d3953dfb512553001dcdd3 (diff)
downloadarm-trusted-firmware-be2a05058311855d8648d6682cd393ccf232a4e8.tar.gz
Merge "fix(build): allow warnings when using lld" into integration
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0360851b2..578083221 100644
--- a/Makefile
+++ b/Makefile
@@ -471,12 +471,14 @@ TF_LDFLAGS += $(subst --,-Xlinker --,$(TF_LDFLAGS_$(ARCH)))
# LD = gcc-ld (ld) or llvm-ld (ld.lld) or other
else
-TF_LDFLAGS += --fatal-warnings -O1
+TF_LDFLAGS += -O1
TF_LDFLAGS += --gc-sections
# ld.lld doesn't recognize the errata flags,
-# therefore don't add those in that case
+# therefore don't add those in that case.
+# ld.lld reports section type mismatch warnings,
+# therefore don't add --fatal-warnings to it.
ifeq ($(findstring ld.lld,$(notdir $(LD))),)
-TF_LDFLAGS += $(TF_LDFLAGS_$(ARCH))
+TF_LDFLAGS += $(TF_LDFLAGS_$(ARCH)) --fatal-warnings
endif
endif