aboutsummaryrefslogtreecommitdiffstats
path: root/spl
diff options
context:
space:
mode:
authorTyler Olmstead2012-08-08 11:24:13 -0500
committerTom Rini2012-09-18 14:01:50 -0500
commitbe7e41efdab086d15108020de8eeada8e7baac8d (patch)
treed6047f46670a3fbcd9f4dd57a12e3a6cd57ca7dd /spl
parentb2f2760006344a55ed93eae870312ab9675eea7d (diff)
downloadu-boot-be7e41efdab086d15108020de8eeada8e7baac8d.tar.gz
u-boot-be7e41efdab086d15108020de8eeada8e7baac8d.tar.xz
u-boot-be7e41efdab086d15108020de8eeada8e7baac8d.zip
spl: remove forced linking of commands into SPL
Remove linker command line options from the SPL makefile that force the inclusion of unreferenced command code from linked object files. As commands are not used in the SPL, these options resulted in an unnecessary increase in the image size, in addition to introducing the possibility of tricky link errors in the case where the command code contained symbols that were not resolved by linking in the limited objects compiled in the SPL build. Signed-off-by: Tyler Olmstead <tyler.j.olmstead@gmail.com> Acked-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'spl')
-rw-r--r--spl/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/spl/Makefile b/spl/Makefile
index 476a5e65d1..d4cb6685d4 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -135,9 +135,7 @@ $(obj)u-boot-spl.bin: $(obj)u-boot-spl
135 $(OBJCOPY) $(OBJCFLAGS) -O binary $< $@ 135 $(OBJCOPY) $(OBJCFLAGS) -O binary $< $@
136 136
137GEN_UBOOT = \ 137GEN_UBOOT = \
138 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) | \ 138 cd $(obj) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) $(__START) \
139 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
140 cd $(obj) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) $$UNDEF_SYM $(__START) \
141 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 139 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
142 -Map u-boot-spl.map -o u-boot-spl 140 -Map u-boot-spl.map -o u-boot-spl
143 141