mirror of https://github.com/zeldaret/tmc.git
revert memcpy linker change because new ld does not like it
adjust dependency scan to still skip libs
This commit is contained in:
parent
c2ad020de6
commit
d40664bb74
2
GBA.mk
2
GBA.mk
|
@ -136,7 +136,7 @@ LIB := -L ../../tools/agbcc/lib -lc
|
||||||
$(ROM): $(ELF)
|
$(ROM): $(ELF)
|
||||||
$(OBJCOPY) -O binary --gap-fill 0xFF --pad-to 0x9000000 $< $@
|
$(OBJCOPY) -O binary --gap-fill 0xFF --pad-to 0x9000000 $< $@
|
||||||
|
|
||||||
$(ELF): objs = $(shell grep -o -E "(\w|/)+\.o" linker.ld)
|
$(ELF): objs = $(shell grep -vE "\*\w+\.a" linker.ld | grep -oE "(\w|/)+\.o")
|
||||||
$(ELF): $(BUILD_DIR)/linker.ld $$(addprefix $(BUILD_DIR)/, $$(objs))
|
$(ELF): $(BUILD_DIR)/linker.ld $$(addprefix $(BUILD_DIR)/, $$(objs))
|
||||||
cd $(BUILD_DIR) && $(LD) $(LDFLAGS) -n -T linker.ld -o ../../$@ $(LIB)
|
cd $(BUILD_DIR) && $(LD) $(LDFLAGS) -n -T linker.ld -o ../../$@ $(LIB)
|
||||||
$(FIX) $@ -t"$(TITLE)" -c$(GAME_CODE) -m$(MAKER_CODE) -r$(REVISION) --silent
|
$(FIX) $@ -t"$(TITLE)" -c$(GAME_CODE) -m$(MAKER_CODE) -r$(REVISION) --silent
|
||||||
|
|
|
@ -867,7 +867,7 @@ SECTIONS {
|
||||||
src/gba/m4a.o(.text);
|
src/gba/m4a.o(.text);
|
||||||
asm/lib/libagbsyscall.o(.text);
|
asm/lib/libagbsyscall.o(.text);
|
||||||
src/eeprom.o(.text);
|
src/eeprom.o(.text);
|
||||||
libc.a(.text);
|
*libc.a:memcpy.o(.text);
|
||||||
/* handwritten assembly in arm mode */
|
/* handwritten assembly in arm mode */
|
||||||
asm/src/intr.o(.text);
|
asm/src/intr.o(.text);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue