[PATCH 14/16] let linker create a link map

Sascha Hauer s.hauer at pengutronix.de
Wed Dec 9 04:03:39 EST 2009


From: Juergen Beisert <j.beisert at pengutronix.de>

Signed-off-by: Juergen Beisert <j.beisert at pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
 .gitignore |    1 +
 Makefile   |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index 1d40508..d589555 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,6 +31,7 @@ uboot
 uboot.S
 uboot.bin
 uboot.netx
+uboot.map
 System.map
 Module.symvers
 ARCH
diff --git a/Makefile b/Makefile
index b70f877..74bee53 100644
--- a/Makefile
+++ b/Makefile
@@ -298,6 +298,8 @@ CFLAGS          := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
                    -fno-strict-aliasing -fno-common -Os -pipe
 AFLAGS          := -D__ASSEMBLY__
 
+LDFLAGS		:= -Map uboot.map
+
 # Read KERNELRELEASE from include/config/kernel.release (if it exists)
 KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
 KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
-- 
1.6.5.2





More information about the u-boot-v2 mailing list