mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] PPC64 debugging symbols for boot wrapper
@ 2005-03-14  3:23 Paul Mackerras
  2005-03-14 20:22 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Mackerras @ 2005-03-14  3:23 UTC (permalink / raw)
  To: akpm; +Cc: Amos Waterland, anton, linux-kernel

This patch is from Amos Waterland <apw@us.ibm.com>.

It is really useful when debugging early boot on simulator to have debug
symbols in the 32-bit code that uncompresses the kernel proper.

Signed-off-by: Paul Mackerras <paulus@samba.org>

diff -urN linux-2.5/arch/ppc64/boot/Makefile test/arch/ppc64/boot/Makefile
--- linux-2.5/arch/ppc64/boot/Makefile	2005-03-07 10:46:38.000000000 +1100
+++ test/arch/ppc64/boot/Makefile	2005-03-14 13:42:34.000000000 +1100
@@ -27,6 +27,11 @@
 BOOTLFLAGS	:= -Ttext 0x00400000 -e _start -T $(srctree)/$(src)/zImage.lds
 OBJCOPYFLAGS    := contents,alloc,load,readonly,data
 
+ifdef CONFIG_DEBUG_INFO
+BOOTCFLAGS		+= -g
+BOOTAFLAGS		+= -g
+endif
+
 src-boot := crt0.S string.S prom.c main.c zlib.c imagesize.c div64.S
 src-boot := $(addprefix $(obj)/, $(src-boot))
 obj-boot := $(addsuffix .o, $(basename $(src-boot)))

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

* Re: [PATCH] PPC64 debugging symbols for boot wrapper
  2005-03-14  3:23 [PATCH] PPC64 debugging symbols for boot wrapper Paul Mackerras
@ 2005-03-14 20:22 ` Sam Ravnborg
  0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2005-03-14 20:22 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: akpm, Amos Waterland, anton, linux-kernel

On Mon, Mar 14, 2005 at 02:23:41PM +1100, Paul Mackerras wrote:
> This patch is from Amos Waterland <apw@us.ibm.com>.
> 
> It is really useful when debugging early boot on simulator to have debug
> symbols in the 32-bit code that uncompresses the kernel proper.
> 
> Signed-off-by: Paul Mackerras <paulus@samba.org>
> 
> diff -urN linux-2.5/arch/ppc64/boot/Makefile test/arch/ppc64/boot/Makefile
> --- linux-2.5/arch/ppc64/boot/Makefile	2005-03-07 10:46:38.000000000 +1100
> +++ test/arch/ppc64/boot/Makefile	2005-03-14 13:42:34.000000000 +1100
> @@ -27,6 +27,11 @@
>  BOOTLFLAGS	:= -Ttext 0x00400000 -e _start -T $(srctree)/$(src)/zImage.lds
>  OBJCOPYFLAGS    := contents,alloc,load,readonly,data
>  
> +ifdef CONFIG_DEBUG_INFO
> +BOOTCFLAGS		+= -g
> +BOOTAFLAGS		+= -g
> +endif

Please change it to use:
bootflags-y  := -Ttext 0x00400000 -e _start -T $(srctree)/$(src)/zImage.lds
bootflags-$(CONFIG_DEBUG_INFO) += -g

And same for BOOTAFLAGS.

	Sam

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-14  3:23 [PATCH] PPC64 debugging symbols for boot wrapper Paul Mackerras
2005-03-14 20:22 ` Sam Ravnborg

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

all inboxes | Powered by JetHome®