Skip to content

Commit

Permalink
Remove label gcc2_compiled.
Browse files Browse the repository at this point in the history
It is an old gcc behaviour to pass information to gdb. It causes duplicated symbols at the same address which is confusing.
pret/agbcc#50
  • Loading branch information
laqieer committed Mar 2, 2022
1 parent f015818 commit 2963c4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ CPP ?= $(PREFIX)cpp$(EXE)
AS := $(PREFIX)as$(EXE)
LD := $(PREFIX)ld$(EXE)
OBJCOPY := $(PREFIX)objcopy$(EXE)
STRIP := $(PREFIX)strip$(EXE)

CC1 := tools/agbcc/bin/agbcc$(EXE)
CC1_OLD := tools/agbcc/bin/old_agbcc$(EXE)
Expand Down Expand Up @@ -145,6 +146,7 @@ $(DEPS_DIR)/%.d: %.c

$(ELF): $(ALL_OBJECTS) $(LDSCRIPT) $(SYM_FILES)
$(LD) -T $(LDSCRIPT) -Map $(MAP) $(ALL_OBJECTS) -R $(BANIM_OBJECT).sym.o -L tools/agbcc/lib -o $@ -lc -lgcc
$(STRIP) -N .gcc2_compiled. $@

%.gba: %.elf
$(OBJCOPY) --strip-debug -O binary --pad-to 0x9000000 --gap-fill=0xff $< $@
Expand Down

0 comments on commit 2963c4c

Please sign in to comment.