forked from len0rd/rockbox
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
This commit is contained in:
parent
e6e5697212
commit
d3586837fa
13 changed files with 14 additions and 14 deletions
|
@ -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 $< $@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue