summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--bootloader/Makefile2
-rwxr-xr-xtools/configure3
2 files changed, 2 insertions, 3 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 $< $@
diff --git a/tools/configure b/tools/configure
index f2626492fb..0dc191a920 100755
--- a/tools/configure
+++ b/tools/configure
@@ -1261,11 +1261,9 @@ fi
if test -n "$archosrom"; then
# Archos SH-based players do this somewhat differently for
# some reason
- extradefines="-DBOOTLOADER -ffunction-sections -fdata-sections"
appsdir='\$(ROOTDIR)/flash/bootbox'
apps="bootbox"
else
- extradefines="-DBOOTLOADER" # for target makefile symbol EXTRA_DEFINES
appsdir='\$(ROOTDIR)/bootloader'
apps="bootloader"
flash=""
@@ -1276,6 +1274,7 @@ fi
output=$bootoutput
fi
fi
+ extradefines="-DBOOTLOADER -ffunction-sections -fdata-sections"
bootloader="1"
echo "Bootloader build selected"
;;