aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2010-06-28 11:15:53 +0800
committerFeng Tang <feng.tang@intel.com>2010-07-20 11:10:04 +0800
commit7badd550c3823c6772f36ecaeade2b57538b6e46 (patch)
tree56689354f047508b466070a1048645d063999b13
parent1fa26a89fca3c7e6c72b1f2fdd960f356a9b0f12 (diff)
downloadsyslinux-7badd550c3823c6772f36ecaeade2b57538b6e46.tar.gz
syslinux-7badd550c3823c6772f36ecaeade2b57538b6e46.tar.xz
syslinux-7badd550c3823c6772f36ecaeade2b57538b6e46.zip
elflink: add -s option for objcopy/ld to reduce extlinux.elf size
-rw-r--r--core/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Makefile b/core/Makefile
index 684e0484..8c675c26 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)