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
 	@echo -e "\e[1;32mLinking ELF binary $@\e[0m"
148
 	@echo -e "\e[1;32mLinking ELF binary $@\e[0m"
149
 	@echo "INPUT($^)" > $(TMP_LD)
149
 	@echo "INPUT($^)" > $(TMP_LD)
150
 	$(LD) $(LDFLAGS) -T $(PAGB_LINK) -T linker.ld -T bpre.sym --whole-archive -r -o $@ --start-group -T $(TMP_LD) --end-group
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
 	@rm -f $(TMP_LD)
153
 	@rm -f $(TMP_LD)
152
 
154
 
153
 $(MAP_PROJ_S): $(MAP_PROJ)
155
 $(MAP_PROJ_S): $(MAP_PROJ)