From 0adc32d0798b479dc17e286460ba04570fd8cdb0 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Wed, 20 Jun 2012 01:14:40 +0200 Subject: [PATCH] Use -Wl,--start-group and -Wl,--end-group for linking the simulator. This makes linking always work regardless of symbol order. Change-Id: I620f55cbfaaff498d4ca095a99e1412f5fbad4e5 --- uisimulator/uisimulator.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,$@,$@)