mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
bootloader: Work around linker wonkiness that broke PP bootloader builds.
Change-Id: I8e32c1605c0844c6f1980919ede61ca674b00bbb
This commit is contained in:
parent
09785a8499
commit
e2adc6781f
1 changed files with 4 additions and 1 deletions
|
@ -16,6 +16,9 @@ BOOTLINK := $(BUILDDIR)/boot.link
|
||||||
|
|
||||||
CLEANOBJS += $(BUILDDIR)/bootloader.*
|
CLEANOBJS += $(BUILDDIR)/bootloader.*
|
||||||
|
|
||||||
|
# FIXME: PP arm targets need this, otherwise we can't find __div0
|
||||||
|
EXTRA_SPECIAL_LIBS = $(call a2lnk, $(CORE_LIBS))
|
||||||
|
|
||||||
.SECONDEXPANSION:
|
.SECONDEXPANSION:
|
||||||
|
|
||||||
$(BOOTLINK): $(BOOTLDS) $(CONFIGFILE)
|
$(BOOTLINK): $(BOOTLDS) $(CONFIGFILE)
|
||||||
|
@ -25,7 +28,7 @@ $(BOOTLINK): $(BOOTLDS) $(CONFIGFILE)
|
||||||
$(BUILDDIR)/bootloader.elf: $$(OBJ) $(FIRMLIB) $(CORE_LIBS) $$(BOOTLINK)
|
$(BUILDDIR)/bootloader.elf: $$(OBJ) $(FIRMLIB) $(CORE_LIBS) $$(BOOTLINK)
|
||||||
$(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJ) \
|
$(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJ) \
|
||||||
-L$(BUILDDIR)/firmware -lfirmware \
|
-L$(BUILDDIR)/firmware -lfirmware \
|
||||||
-L$(BUILDDIR)/lib $(call a2lnk, $(CORE_LIBS)) \
|
-L$(BUILDDIR)/lib $(call a2lnk, $(CORE_LIBS)) $(EXTRA_SPECIAL_LIBS) \
|
||||||
-lgcc -T$(BOOTLINK) $(GLOBAL_LDOPTS) \
|
-lgcc -T$(BOOTLINK) $(GLOBAL_LDOPTS) \
|
||||||
-Wl,--gc-sections -Wl,-Map,$(BUILDDIR)/bootloader.map
|
-Wl,--gc-sections -Wl,-Map,$(BUILDDIR)/bootloader.map
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue