From d3586837fa9221a7ef104550b4c0aadc1a6ea77c Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 4 Jan 2008 21:07:05 +0000 Subject: 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 --- apps/plugins/reversi/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/reversi/Makefile') 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 $< $@ -- cgit v1.2.3