Ver código fonte

Produce a sorted list of all local symbols in the map file.

tags/v0.9.3
Michael Brown 19 anos atrás
pai
commit
81e4755106
2 arquivos alterados com 3 adições e 0 exclusões
  1. 2
    0
      src/Makefile
  2. 1
    0
      src/Makefile.housekeeping

+ 2
- 0
src/Makefile Ver arquivo

@@ -72,10 +72,12 @@ AR		?= $(CROSS_COMPILE)ar
72 72
 RANLIB		?= $(CROSS_COMPILE)ranlib
73 73
 OBJCOPY		?= $(CROSS_COMPILE)objcopy
74 74
 NM		?= $(CROSS_COMPILE)nm
75
+OBJDUMP		?= $(CROSS_COMPILE)objdump
75 76
 PARSEROM	?= $(PERL) ./util/parserom.pl
76 77
 MAKEROM		?= $(PERL) ./util/makerom.pl
77 78
 MKCONFIG	?= $(PERL) ./util/mkconfig.pl
78 79
 SYMCHECK	?= $(PERL) ./util/symcheck.pl
80
+SORTOBJDUMP	?= $(PERL) ./util/sortobjdump.pl
79 81
 NRV2B		?= ./util/nrv2b
80 82
 
81 83
 # Location to place generated files

+ 1
- 0
src/Makefile.housekeeping Ver arquivo

@@ -283,6 +283,7 @@ blib : $(BLIB)
283 283
 $(BIN)/%.tmp : $(BLIB) $(MAKEDEPS) $(LDSCRIPT) 
284 284
 	$(LD) $(LDFLAGS) -T $(LDSCRIPT) $(TGT_LD_FLAGS) $(BLIB) -o $@ \
285 285
 		-Map $(BIN)/$*.tmp.map
286
+	$(OBJDUMP) -ht $@ | $(SORTOBJDUMP) >> $(BIN)/$*.tmp.map
286 287
 
287 288
 # Show a linker map for the specified target
288 289
 #

Carregando…
Cancelar
Salvar