summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2020-07-06 11:47:37 -0700
committerCommit Bot <commit-bot@chromium.org>2020-07-10 20:39:08 +0000
commit0ae1e58736b59189cc336f41510e7a2a91489465 (patch)
tree48799b0530a1da6e62e806a912c7af88205fa80d /Makefile
parentd46f93ed581a9e3ddc9ab9cdb47a0f2917a7f422 (diff)
downloadvboot-0ae1e58736b59189cc336f41510e7a2a91489465.tar.gz
Makefile: always include --gc-sections
We appear to intend to supply --gc-sections all the time, but the calling environment may provide its own LDFLAGS which will override this. BUG=none TEST=build for both SDK and target; watch (with V=1) that --gc-sections is really supplied Signed-off-by: Brian Norris <briannorris@chromium.org> Change-Id: Icdcdc3e730e3898b6058f2e3e750a7cdda87e74b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2283843 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index eb77cfe5..e025907f 100644
--- a/Makefile
+++ b/Makefile
@@ -154,7 +154,7 @@ CFLAGS += -DCHROMEOS_ENVIRONMENT ${COMMON_FLAGS}
endif
# Needs -Wl because LD is actually set to CC by default.
-LDFLAGS ?= -Wl,--gc-sections
+LDFLAGS += -Wl,--gc-sections
ifneq (${DEBUG},)
CFLAGS += -DVBOOT_DEBUG