aboutsummaryrefslogtreecommitdiff
path: root/makefiles/toolchain_gnu-arm-eabi.mk
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-05-26 20:51:20 +0200
committerpx4dev <px4@purgatory.org>2013-05-26 20:51:20 +0200
commiteab01a2efd0c1f1fc9cf32181c63a7e5494f0004 (patch)
tree9b7c80f0a1124bb07257519fc40da095aa6e264c /makefiles/toolchain_gnu-arm-eabi.mk
parentfba92f357c0d9147bcd326bb1e48665077760439 (diff)
downloadpx4-firmware-eab01a2efd0c1f1fc9cf32181c63a7e5494f0004.tar.gz
px4-firmware-eab01a2efd0c1f1fc9cf32181c63a7e5494f0004.tar.bz2
px4-firmware-eab01a2efd0c1f1fc9cf32181c63a7e5494f0004.zip
Hotfix: Generate map files for modules as well for more in-depth memory-use debugging.
Diffstat (limited to 'makefiles/toolchain_gnu-arm-eabi.mk')
-rw-r--r--makefiles/toolchain_gnu-arm-eabi.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/makefiles/toolchain_gnu-arm-eabi.mk b/makefiles/toolchain_gnu-arm-eabi.mk
index eeba0ff2c..c75a08bd1 100644
--- a/makefiles/toolchain_gnu-arm-eabi.mk
+++ b/makefiles/toolchain_gnu-arm-eabi.mk
@@ -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