Browse Source

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

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
81e4755106
2 changed files with 3 additions and 0 deletions
  1. 2
    0
      src/Makefile
  2. 1
    0
      src/Makefile.housekeeping

+ 2
- 0
src/Makefile View File

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

+ 1
- 0
src/Makefile.housekeeping View File

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

Loading…
Cancel
Save