[syslinux:elflink] elflink: add -s option for objcopy/ld to reduce extlinux.elf size

syslinux-bot for Feng Tang feng.tang at intel.com
Thu Aug 12 21:03:29 PDT 2010


Commit-ID:  7badd550c3823c6772f36ecaeade2b57538b6e46
Gitweb:     http://syslinux.zytor.com/commit/7badd550c3823c6772f36ecaeade2b57538b6e46
Author:     Feng Tang <feng.tang at intel.com>
AuthorDate: Mon, 28 Jun 2010 11:15:53 +0800
Committer:  Feng Tang <feng.tang at intel.com>
CommitDate: Tue, 20 Jul 2010 11:10:04 +0800

elflink: add -s option for objcopy/ld to reduce extlinux.elf size



---
 core/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/Makefile b/core/Makefile
index 684e048..8c675c2 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -79,7 +79,7 @@ kwdhash.gen: keywords genhash.pl
 .PRECIOUS: %.elf
 
 %.raw: %.elf
-	$(OBJCOPY) -O binary $< $(@:.bin=.raw)
+	$(OBJCOPY) -O binary -S $< $(@:.bin=.raw)
 
 %.bin: %.raw $(PREPCORE)
 	$(PREPCORE) $< $@
@@ -90,7 +90,7 @@ kwdhash.gen: keywords genhash.pl
 		-l $(@:.o=.lsr) -o $@ -MP -MD .$@.d $<
 
 %.elf: %.o $(LIBDEP) syslinux.ld
-	$(LD) $(LDFLAGS) -Bsymbolic -pie -E --hash-style=gnu -T syslinux.ld -M -o $@ $< \
+	$(LD) $(LDFLAGS) -s -Bsymbolic -pie -E --hash-style=gnu -T syslinux.ld -M -o $@ $< \
 		--start-group $(LIBS) --end-group \
 		> $(@:.elf=.map)
 	$(OBJDUMP) -h $@ > $(@:.elf=.sec)



More information about the Syslinux-commits mailing list