summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2012-06-20 01:14:40 +0200
committerFrank Gevaerts <frank@gevaerts.be>2012-07-03 22:17:06 +0200
commit0adc32d0798b479dc17e286460ba04570fd8cdb0 (patch)
tree76595a2f2138eafadb01ba087eb0ebbc5e61d5cd /uisimulator
parent707e9d8945b8866dfc8a1487b3baad49a781dd72 (diff)
downloadrockbox-0adc32d0798b479dc17e286460ba04570fd8cdb0.tar.gz
rockbox-0adc32d0798b479dc17e286460ba04570fd8cdb0.tar.bz2
rockbox-0adc32d0798b479dc17e286460ba04570fd8cdb0.zip
Use -Wl,--start-group and -Wl,--end-group for linking the simulator.
This makes linking always work regardless of symbol order. Change-Id: I620f55cbfaaff498d4ca095a99e1412f5fbad4e5
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/uisimulator.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/uisimulator.make b/uisimulator/uisimulator.make
index 8756ac65b7..2641353bc9 100644
--- a/uisimulator/uisimulator.make
+++ b/uisimulator/uisimulator.make
@@ -31,7 +31,7 @@ $(SIMLIB): $$(SIMOBJ) $(UIBMP)
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
$(BUILDDIR)/$(BINARY): $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS) $(SIMLIB)
- $(call PRINTS,LD $(BINARY))$(CC) -o $@ $^ $(SIMLIB) $(LDOPTS) $(GLOBAL_LDOPTS) \
+ $(call PRINTS,LD $(BINARY))$(CC) -o $@ -Wl,--start-group $^ -Wl,--end-group $(LDOPTS) $(GLOBAL_LDOPTS) \
-Wl,-Map,$(BUILDDIR)/rockbox.map
$(SILENT)$(call objcopy,$@,$@)