Browse Source

add temporary linked object so ld shows symbol errors more precicely

SBird1337 6 years ago
parent
commit
4eacd55595
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      makefile

+ 2
- 0
makefile View File

@@ -148,6 +148,8 @@ $(MAIN_OBJ): $(ALL_OBJ) $(SPRITES) $(MUSIC_AR) $(SMPL_AR) $(VOICE_AR) $(LIST_AR)
148 148
 	@echo -e "\e[1;32mLinking ELF binary $@\e[0m"
149 149
 	@echo "INPUT($^)" > $(TMP_LD)
150 150
 	$(LD) $(LDFLAGS) -T $(PAGB_LINK) -T linker.ld -T bpre.sym --whole-archive -r -o $@ --start-group -T $(TMP_LD) --end-group
151
+	$(LD) $(LDFLAGS) -T $(PAGB_LINK) -T linker.ld -T bpre.sym --whole-archive -o $@.dbg --start-group -T $(TMP_LD) --end-group
152
+	@rm -f $@.dbg
151 153
 	@rm -f $(TMP_LD)
152 154
 
153 155
 $(MAP_PROJ_S): $(MAP_PROJ)