summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2007-02-22 10:05:39 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2007-02-22 10:05:39 +0000
commitb58e4e79ff081e1cc4d54208dde4a30c4a776d67 (patch)
tree1f26f643a8d4621fd22d850551f297e60c16199b /bootloader
parentcc32a1f3b169115f5bff50b12e451ffe26921a4c (diff)
downloadrockbox-b58e4e79ff081e1cc4d54208dde4a30c4a776d67.tar.gz
rockbox-b58e4e79ff081e1cc4d54208dde4a30c4a776d67.tar.bz2
rockbox-b58e4e79ff081e1cc4d54208dde4a30c4a776d67.zip
Use -ffunction-sections and -fdata-sections for all bootloaders
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12449 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootloader/Makefile b/bootloader/Makefile
index 134187d521..342cdc5861 100644
--- a/bootloader/Makefile
+++ b/bootloader/Makefile
@@ -59,7 +59,7 @@ $(MAXOUTFILE):
$(SILENT)rm $(MAXINFILE)
$(OBJDIR)/bootloader.elf : $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX)
- $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/bootloader.map
+ $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Wl,--gc-sections -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/bootloader.map
$(OBJDIR)/bootloader.bin : $(OBJDIR)/bootloader.elf
$(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@