summaryrefslogtreecommitdiff
path: root/common/system_map.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-05-20 04:35:14 -0400
committerWolfgang Denk <wd@denx.de>2009-06-12 20:45:48 +0200
commitecb1dc892297d5d99876907328fed732feefeab2 (patch)
tree60f14fd9310612bb4ee23d819d9f8fad859beda7 /common/system_map.c
parent36c9169aa6f79ddf604a3bca64e145654f94888b (diff)
downloadu-boot-imx-ecb1dc892297d5d99876907328fed732feefeab2.zip
u-boot-imx-ecb1dc892297d5d99876907328fed732feefeab2.tar.gz
u-boot-imx-ecb1dc892297d5d99876907328fed732feefeab2.tar.bz2
Add support for Linux-like kallsysms
The kernel stores address<->symbol names in it so things can be decoded at runtime. Do it in U-Boot, and we get nice symbol decoding when crashing. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common/system_map.c')
-rw-r--r--common/system_map.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/system_map.c b/common/system_map.c
new file mode 100644
index 0000000..8307293
--- /dev/null
+++ b/common/system_map.c
@@ -0,0 +1,8 @@
+/*
+ * The builtin symbol table for use with kallsyms
+ *
+ * Copyright (c) 2008-2009 Analog Devices Inc.
+ * Licensed under the GPL-2 or later.
+ */
+
+const char const system_map[] = SYSTEM_MAP;