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

* Re: [patch 2.6.11-rc5] Add target debug_kallsyms
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Ravnborg @ 2005-03-14 21:43 UTC (permalink / raw)
  To: Keith Owens; +Cc: Geert Uytterhoeven, Linux Kernel Development, Linux/m68k

On Sat, Feb 26, 2005 at 09:50:02PM +1100, Keith Owens wrote:
> 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>
Applied to my kbuild tree.
I will remove it when we stop see kallsyms reports.

	Sam

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

* Re: [patch 2.6.11-rc5] Add target debug_kallsyms
  2005-03-14 21:43 ` Sam Ravnborg
@ 2005-03-14 21:49   ` Keith Owens
  0 siblings, 0 replies; 3+ messages in thread
From: Keith Owens @ 2005-03-14 21:49 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Geert Uytterhoeven, Linux Kernel Development, Linux/m68k

On Mon, 14 Mar 2005 22:43:41 +0100, 
Sam Ravnborg <sam@ravnborg.org> wrote:
>On Sat, Feb 26, 2005 at 09:50:02PM +1100, Keith Owens wrote:
>> 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>
>Applied to my kbuild tree.
>I will remove it when we stop see kallsyms reports.

Good luck!  Most of the kallsyms reports are not really kallsyms bugs,
rather they are caused by the kallsyms checking picking up toolchain
problems.


^ 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