summaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorHaiying Wang <Haiying.Wang@freescale.com>2011-02-22 16:38:05 -0500
committerWolfgang Denk <wd@denx.de>2011-03-22 23:32:06 +0100
commit6dc1eceb9c5f42216f1ba0e0ef538015b0aa10bc (patch)
tree68b8f0f3a430eefbdef343dd62d8c89eebcadb98 /config.mk
parentc81c1222427f268d29ba999c82e2477c428e7bab (diff)
downloadblackbird-obmc-uboot-6dc1eceb9c5f42216f1ba0e0ef538015b0aa10bc.tar.gz
blackbird-obmc-uboot-6dc1eceb9c5f42216f1ba0e0ef538015b0aa10bc.zip
Introduce a new linker flag LDFLAGS_FINAL
commit 8aba9dceebb14144e07d19593111ee3a999c37fc Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS breaks the usage of --gc-section to build nand_spl. We still need linker option --gc-section for every uboot image, not only the main one. LDFLAGS_FINAL passes the --gc-sections to each uboot image. To get the proper linker flags, we use LDFLAGS and LDFLAGS_FINAL to replace PLATFORM_LDFLAGS in the Makefile of each nand_spl board. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 401dc2ea5e..fa46ff1a51 100644
--- a/config.mk
+++ b/config.mk
@@ -206,8 +206,9 @@ endif
AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS)
LDFLAGS += $(PLATFORM_LDFLAGS)
+LDFLAGS_FINAL += -Bstatic
-LDFLAGS_u-boot += -Bstatic -T $(obj)u-boot.lds $(PLATFORM_LDFLAGS)
+LDFLAGS_u-boot += -T $(obj)u-boot.lds $(LDFLAGS_FINAL)
ifneq ($(CONFIG_SYS_TEXT_BASE),)
LDFLAGS_u-boot += -Ttext $(CONFIG_SYS_TEXT_BASE)
endif
OpenPOWER on IntegriCloud