summaryrefslogtreecommitdiffstats
path: root/apps/plugins/Makefile
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-06-29 21:04:22 +0000
committerJens Arnold <amiconn@rockbox.org>2005-06-29 21:04:22 +0000
commit305a7ce1a29b35a463a5ea79e8089b362f9810da (patch)
tree17e03cdf1fa32370cb0f592afc716bde45935939 /apps/plugins/Makefile
parent84d6f9e89bf1bae7e3669e487541f91f27a86b0a (diff)
downloadrockbox-305a7ce1a29b35a463a5ea79e8089b362f9810da.tar.gz
rockbox-305a7ce1a29b35a463a5ea79e8089b362f9810da.zip
Enabled sectioned compilation for the plugin library, and linking with garbage collection for the plugins. The effect is that functions and data objects from one object file in the plugin library are included in the .elf individually, not as a whole. It makes maintaining larger plugin library packages easier, as it is no longer necessary to split the source files by function to avoid dead code to get included in the plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6931 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/Makefile')
-rw-r--r--apps/plugins/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile
index a59e33f5c6..1f1c309bd2 100644
--- a/apps/plugins/Makefile
+++ b/apps/plugins/Makefile
@@ -54,7 +54,7 @@ ifndef SIMVER
$(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(BUILDDIR)/libplugin.a
$(SILENT)(file=`basename $@`; \
echo "LD $$file"; \
- $(CC) $(GCCOPTS) -O -nostdlib -o $@ $< -L$(BUILDDIR) $(CODECLIBS) -lplugin -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$*.map)
+ $(CC) $(GCCOPTS) -O -nostdlib -o $@ $< -L$(BUILDDIR) $(CODECLIBS) -lplugin -lgcc -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/$*.map)
$(OBJDIR)/%.rock : $(OBJDIR)/%.elf
@echo "OBJCOPY "`basename $@`