All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] spl: remove forced linking of commands into SPL
@ 2012-08-09  2:24 Tyler Olmstead
  2012-08-09 14:35 ` Tom Rini
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tyler Olmstead @ 2012-08-09  2:24 UTC (permalink / raw)
  To: u-boot

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>
---
 spl/Makefile |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/spl/Makefile b/spl/Makefile
index ea7d475..0c30a85 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -126,9 +126,7 @@ $(obj)u-boot-spl.bin:	$(obj)u-boot-spl
 	$(OBJCOPY) $(OBJCFLAGS) -O binary $< $@
 
 GEN_UBOOT = \
-	UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) | \
-	sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
-	cd $(obj) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) $$UNDEF_SYM $(__START) \
+	cd $(obj) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) $(__START) \
 		--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
 		-Map u-boot-spl.map -o u-boot-spl
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-09-18 19:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-09  2:24 [U-Boot] [PATCH] spl: remove forced linking of commands into SPL Tyler Olmstead
2012-08-09 14:35 ` Tom Rini
2012-08-09 17:37   ` Tyler Olmstead
2012-08-09 17:55     ` Tom Rini
2012-08-09 23:00 ` Tom Rini
2012-08-10  0:42   ` Tyler Olmstead
2012-09-18 19:04 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.