summaryrefslogtreecommitdiff
path: root/apps/plugins/doom
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-01-04 21:07:05 +0000
committerJens Arnold <amiconn@rockbox.org>2008-01-04 21:07:05 +0000
commitd3586837fa9221a7ef104550b4c0aadc1a6ea77c (patch)
tree9e25efe160052fc4184304907b0009b5b2cf0267 /apps/plugins/doom
parente6e5697212943ccb35e94664b138f9289d2758b4 (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/doom')
-rw-r--r--apps/plugins/doom/Makefile2
1 files changed, 1 insertions, 1 deletions
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 $< $@