diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-06-29 21:04:22 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-29 21:04:22 +0000 |
commit | 305a7ce1a29b35a463a5ea79e8089b362f9810da (patch) | |
tree | 17e03cdf1fa32370cb0f592afc716bde45935939 /apps/plugins/lib | |
parent | 84d6f9e89bf1bae7e3669e487541f91f27a86b0a (diff) | |
download | rockbox-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/lib')
-rw-r--r-- | apps/plugins/lib/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/lib/Makefile b/apps/plugins/lib/Makefile index 21dea571ae..7eddccddc5 100644 --- a/apps/plugins/lib/Makefile +++ b/apps/plugins/lib/Makefile | |||
@@ -20,6 +20,11 @@ endif | |||
20 | CFLAGS = $(GCCOPTS) \ | 20 | CFLAGS = $(GCCOPTS) \ |
21 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -DPLUGIN | 21 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -DPLUGIN |
22 | 22 | ||
23 | # Sectioned compilation for target | ||
24 | ifndef SIMVER | ||
25 | CFLAGS += -ffunction-sections -fdata-sections | ||
26 | endif | ||
27 | |||
23 | # This sets up 'SRC' based on the files mentioned in SOURCES | 28 | # This sets up 'SRC' based on the files mentioned in SOURCES |
24 | include $(TOOLSDIR)/makesrc.inc | 29 | include $(TOOLSDIR)/makesrc.inc |
25 | 30 | ||