From: Sam Ravnborg Date: Thu, 14 Jul 2005 20:19:08 +0000 (+0000) Subject: kbuild: Add target debug_kallsyms X-Git-Tag: v2.6.14-rc1~750^2~26 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=33bc25eae40c100238a5abe8472cef0cd40226f1;p=linux-2.6-omap-h63xx.git kbuild: Add target debug_kallsyms From: Keith Owens Make it easier to generate maps for debugging kallsyms problems. debug_kallsyms is only a debugging target so no help or silent mode. Signed-off-by: Keith Owens Signed-off-by: Sam Ravnborg --- diff --git a/Makefile b/Makefile index 206b2833ee6..5d0ecf11bfa 100644 --- a/Makefile +++ b/Makefile @@ -722,6 +722,16 @@ quiet_cmd_kallsyms = KSYM $@ # Needs to visit scripts/ before $(KALLSYMS) can be used. $(KALLSYMS): scripts ; +# Generate some data for debugging strange kallsyms problems +debug_kallsyms: .tmp_map$(last_kallsyms) + +.tmp_map%: .tmp_vmlinux% FORCE + ($(OBJDUMP) -h $< | $(AWK) '/^ +[0-9]/{print $$4 " 0 " $$2}'; $(NM) $<) | sort > $@ + +.tmp_map3: .tmp_map2 + +.tmp_map2: .tmp_map1 + endif # ifdef CONFIG_KALLSYMS # vmlinux image - including updated kernel symbols