Hotfix: Generate map files for modules as well for more in-depth memory-use debugging.

This commit is contained in:
px4dev 2013-05-26 20:51:20 +02:00
parent fba92f357c
commit eab01a2efd

View File

@ -219,7 +219,7 @@ endef
define PRELINK
@$(ECHO) "PRELINK: $1"
@$(MKDIR) -p $(dir $1)
$(Q) $(LD) -Ur -o $1 $2 && $(OBJCOPY) --localize-hidden $1
$(Q) $(LD) -Ur -Map $1.map -o $1 $2 && $(OBJCOPY) --localize-hidden $1
endef
# Update the archive $1 with the files in $2