diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-01-04 21:07:05 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-01-04 21:07:05 +0000 |
commit | d3586837fa9221a7ef104550b4c0aadc1a6ea77c (patch) | |
tree | 9e25efe160052fc4184304907b0009b5b2cf0267 /apps/plugins | |
parent | e6e5697212943ccb35e94664b138f9289d2758b4 (diff) |
Stop wasting binary size + ram for several plugins. Plugins are supposed to be linked with --gc-sections, in case they use plugin library elements.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15997 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/beatbox/Makefile | 2 | ||||
-rw-r--r-- | apps/plugins/chessbox/Makefile | 2 | ||||
-rw-r--r-- | apps/plugins/clock/Makefile | 2 | ||||
-rw-r--r-- | apps/plugins/doom/Makefile | 2 | ||||
-rw-r--r-- | apps/plugins/midi/Makefile | 2 | ||||
-rw-r--r-- | apps/plugins/mpegplayer/Makefile | 2 | ||||
-rw-r--r-- | apps/plugins/pacbox/Makefile | 2 | ||||
-rw-r--r-- | apps/plugins/reversi/Makefile | 2 | ||||
-rw-r--r-- | apps/plugins/rockboy/Makefile | 2 | ||||
-rw-r--r-- | apps/plugins/searchengine/Makefile | 2 | ||||
-rw-r--r-- | apps/plugins/shortcuts/Makefile | 4 | ||||
-rw-r--r-- | apps/plugins/sudoku/Makefile | 2 | ||||
-rw-r--r-- | apps/plugins/zxbox/Makefile | 2 |
13 files changed, 14 insertions, 14 deletions
diff --git a/apps/plugins/beatbox/Makefile b/apps/plugins/beatbox/Makefile index 88ed7a4011..9465c420d2 100644 --- a/apps/plugins/beatbox/Makefile +++ b/apps/plugins/beatbox/Makefile @@ -38,7 +38,7 @@ all: $(OUTPUT) ifndef SIMVER $(OBJDIR)/beatbox.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS) $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ - $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/beatbox.map + $(LINKBITMAPS) -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/beatbox.map $(OUTPUT): $(OBJDIR)/beatbox.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ diff --git a/apps/plugins/chessbox/Makefile b/apps/plugins/chessbox/Makefile index fd665b00ea..4efb40df4c 100644 --- a/apps/plugins/chessbox/Makefile +++ b/apps/plugins/chessbox/Makefile @@ -42,7 +42,7 @@ all: $(OUTPUT) ifndef SIMVER $(OBJDIR)/chessbox.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS) $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ - $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/chessbox.map + $(LINKBITMAPS) -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/chessbox.map $(OUTPUT): $(OBJDIR)/chessbox.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ diff --git a/apps/plugins/clock/Makefile b/apps/plugins/clock/Makefile index 0481d3e1c2..abf932a682 100644 --- a/apps/plugins/clock/Makefile +++ b/apps/plugins/clock/Makefile @@ -40,7 +40,7 @@ all: $(OUTPUT) ifndef SIMVER $(OBJDIR)/clock.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS) $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ - $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/clock.map + $(LINKBITMAPS) -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/clock.map $(OUTPUT): $(OBJDIR)/clock.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ diff --git a/apps/plugins/doom/Makefile b/apps/plugins/doom/Makefile index 1687e2b88f..df6baf704b 100644 --- a/apps/plugins/doom/Makefile +++ b/apps/plugins/doom/Makefile @@ -101,7 +101,7 @@ all: $(OUTPUT) ifndef SIMVER $(OBJDIR)/doom.elf: $(OBJS) $(LINKFILE) $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc\ - -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/doom.map + -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/doom.map $(OUTPUT): $(OBJDIR)/doom.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ diff --git a/apps/plugins/midi/Makefile b/apps/plugins/midi/Makefile index 94359024f1..f71f7d0a3f 100644 --- a/apps/plugins/midi/Makefile +++ b/apps/plugins/midi/Makefile @@ -45,7 +45,7 @@ all: $(OUTPUT) ifndef SIMVER $(OBJDIR)/midiplay.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS) $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ - $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/midiplay.map + $(LINKBITMAPS) -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/midiplay.map $(OUTPUT): $(OBJDIR)/midiplay.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ diff --git a/apps/plugins/mpegplayer/Makefile b/apps/plugins/mpegplayer/Makefile index 97c9e6a919..66a6142397 100644 --- a/apps/plugins/mpegplayer/Makefile +++ b/apps/plugins/mpegplayer/Makefile @@ -43,7 +43,7 @@ libmad-mpegplayer: ifndef SIMVER $(OBJDIR)/mpegplayer.elf: $(OBJS) $(LINKFILE) $(BUILDDIR)/libmad-mpegplayer.a $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lmad-mpegplayer -lgcc\ - $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/mpegplayer.map + $(LINKBITMAPS) -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/mpegplayer.map $(OUTPUT): $(OBJDIR)/mpegplayer.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ diff --git a/apps/plugins/pacbox/Makefile b/apps/plugins/pacbox/Makefile index 7a62d98462..e1b998a7aa 100644 --- a/apps/plugins/pacbox/Makefile +++ b/apps/plugins/pacbox/Makefile @@ -35,7 +35,7 @@ all: $(OUTPUT) ifndef SIMVER $(OBJDIR)/pacbox.elf: $(OBJS) $(LINKFILE) $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ - -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/pacbox.map + -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/pacbox.map $(OUTPUT): $(OBJDIR)/pacbox.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ diff --git a/apps/plugins/reversi/Makefile b/apps/plugins/reversi/Makefile index b008738335..97a042e0f7 100644 --- a/apps/plugins/reversi/Makefile +++ b/apps/plugins/reversi/Makefile @@ -39,7 +39,7 @@ all: $(OUTPUT) ifndef SIMVER $(OBJDIR)/reversi.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS) $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ - $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/reversi.map + $(LINKBITMAPS) -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/reversi.map $(OUTPUT): $(OBJDIR)/reversi.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ diff --git a/apps/plugins/rockboy/Makefile b/apps/plugins/rockboy/Makefile index 2a372ef0c0..4aa8526125 100644 --- a/apps/plugins/rockboy/Makefile +++ b/apps/plugins/rockboy/Makefile @@ -46,7 +46,7 @@ all: $(OUTPUT) ifndef SIMVER $(OBJDIR)/rockboy.elf: $(OBJS) $(LINKFILE) $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -fast -lgcc \ - -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockboy.map + -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/rockboy.map $(OUTPUT): $(OBJDIR)/rockboy.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ diff --git a/apps/plugins/searchengine/Makefile b/apps/plugins/searchengine/Makefile index b24c89a4db..7e3cca4940 100644 --- a/apps/plugins/searchengine/Makefile +++ b/apps/plugins/searchengine/Makefile @@ -32,7 +32,7 @@ all: $(OUTPUT) ifndef SIMVER $(OBJDIR)/searchengine.elf: $(OBJS) $(LINKFILE) $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ - -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/searchengine.map + -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/searchengine.map $(OUTPUT): $(OBJDIR)/searchengine.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ diff --git a/apps/plugins/shortcuts/Makefile b/apps/plugins/shortcuts/Makefile index 93089cc140..2958af8818 100644 --- a/apps/plugins/shortcuts/Makefile +++ b/apps/plugins/shortcuts/Makefile @@ -36,14 +36,14 @@ all: $(OUTPUT) ifndef SIMVER $(OBJDIR)/shortcuts_view.elf: $(VIEW_OBJS) $(LINKFILE) $(BITMAPLIBS) $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(VIEW_OBJS) -L$(BUILDDIR) -lplugin -lgcc \ - $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/shortcuts_view.map + $(LINKBITMAPS) -Wl,--gc-sections -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/shortcuts_view.map $(OUTDIR)/shortcuts_view.rock: $(OBJDIR)/shortcuts_view.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ $(OBJDIR)/shortcuts_append.elf: $(APPEND_OBJS) $(LINKFILE) $(BITMAPLIBS) $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(APPEND_OBJS) -L$(BUILDDIR) -lplugin -lgcc \ - $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/shortcuts_append.map + $(LINKBITMAPS) -Wl,--gc-sections -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/shortcuts_append.map $(OUTDIR)/shortcuts_append.rock: $(OBJDIR)/shortcuts_append.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ diff --git a/apps/plugins/sudoku/Makefile b/apps/plugins/sudoku/Makefile index bb1425c628..948b315a32 100644 --- a/apps/plugins/sudoku/Makefile +++ b/apps/plugins/sudoku/Makefile @@ -39,7 +39,7 @@ all: $(OUTPUT) ifndef SIMVER $(OBJDIR)/sudoku.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS) $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ - $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/sudoku.map + $(LINKBITMAPS) -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/sudoku.map $(OUTPUT): $(OBJDIR)/sudoku.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ diff --git a/apps/plugins/zxbox/Makefile b/apps/plugins/zxbox/Makefile index 49f16a0bd2..d7862c514b 100644 --- a/apps/plugins/zxbox/Makefile +++ b/apps/plugins/zxbox/Makefile @@ -44,7 +44,7 @@ all: $(OUTPUT) ifndef SIMVER $(OBJDIR)/zxbox.elf: $(OBJS) $(LINKFILE) $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ - -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/zxbox.map + -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/zxbox.map $(OUTPUT): $(OBJDIR)/zxbox.elf $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ |