summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2009-12-04 17:50:48 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-12-10 12:15:01 +0100
commit118386d83f69cea28f3f7500c7b8c5bc6ee6cfff (patch)
tree7c9e2761f9ff579ef7843a6bff20114421b6e5a4
parentf5caf0c5b2c7b1c4d5b3c3f8c78d57eadc67a3eb (diff)
downloadbarebox-118386d83f69cea28f3f7500c7b8c5bc6ee6cfff.tar.gz
let linker create a link map
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--.gitignore1
-rw-r--r--Makefile2
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)