mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 2.6.11-rc5] Add target debug_kallsyms
@ 2005-02-26 10:50 Keith Owens
  2005-03-14 21:43 ` Sam Ravnborg
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Owens @ 2005-02-26 10:50 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Geert Uytterhoeven, Linux Kernel Development, Linux/m68k

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 <kaos@ocs.com.au>


Index: linux/Makefile
===================================================================
--- linux.orig/Makefile	2005-02-25 16:21:44.000000000 +1100
+++ linux/Makefile	2005-02-26 21:30:54.000000000 +1100
@@ -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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-14 21:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-26 10:50 [patch 2.6.11-rc5] Add target debug_kallsyms Keith Owens
2005-03-14 21:43 ` Sam Ravnborg
2005-03-14 21:49   ` Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome