summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-15 13:37:20 -0400
committerWolfgang Denk <wd@denx.de>2009-07-10 23:04:15 +0200
commit7bd49ad12cc36a4de6995ddabbc65ffa1aa1933d (patch)
tree5d98821482ffe1c39f67b6b8ebde422fe5c23718
parent3672cd5c3b53d219d33345eebad4e25ad5bf6d52 (diff)
downloadu-boot-imx-7bd49ad12cc36a4de6995ddabbc65ffa1aa1933d.zip
u-boot-imx-7bd49ad12cc36a4de6995ddabbc65ffa1aa1933d.tar.gz
u-boot-imx-7bd49ad12cc36a4de6995ddabbc65ffa1aa1933d.tar.bz2
kallsyms: fix escaping of NUL char in strings
The current kallsyms code is using \\0 to escape the backslash in the awk code, but the shell too needs escaping. This way we make sure gcc is passed the \0. Then gcc itself will consume this as an octal, so we have to use 000 so gcc will create the final NUL. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2a06440..49ffac7 100644
--- a/Makefile
+++ b/Makefile
@@ -352,7 +352,7 @@ GEN_UBOOT = \
$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
$(GEN_UBOOT)
ifeq ($(CONFIG_KALLSYMS),y)
- smap=`$(call SYSTEM_MAP,u-boot) | awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\0"}'` ; \
+ smap=`$(call SYSTEM_MAP,u-boot) | awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
$(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" -c common/system_map.c -o $(obj)common/system_map.o
$(GEN_UBOOT) $(obj)common/system_map.o
endif