Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Is the new generic KGDB patch in upstream-akpm?
@ 2008-07-25 16:21 Daniel Laird
  2008-07-25 17:42 ` danieljlaird
  2008-07-29  7:09 ` Ralf Baechle
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Laird @ 2008-07-25 16:21 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

I am trying to respin the patch to add pnx833x support to linux 2.6.27.
I wanted to patch against the new generic kernel KGDB patch.
So I removed gdb-hook etc.

However when I compile I get
arch/mips/kernel/built-in.o: In function `early_console_write':
early_printk.c:(.init.text+0x1450): undefined reference to `prom_putchar'
early_printk.c:(.init.text+0x1450): relocation truncated to fit:
R_MIPS_26 against `prom_putchar'
early_printk.c:(.init.text+0x145c): undefined reference to `prom_putchar'
early_printk.c:(.init.text+0x145c): relocation truncated to fit:
R_MIPS_26 against `prom_putchar'
make[1]: *** [.tmp_vmlinux1] Error 1

These functions were defined in my gdb-hook.c.  Do I need to move
these somewhere else now? Or just not support EARLY_PRINTK etc.

Is this true?
Cheers
Daniel Laird

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

* Re: Is the new generic KGDB patch in upstream-akpm?
  2008-07-25 16:21 Is the new generic KGDB patch in upstream-akpm? Daniel Laird
@ 2008-07-25 17:42 ` danieljlaird
  2008-07-25 17:42   ` danieljlaird
  2008-07-29  7:09 ` Ralf Baechle
  1 sibling, 1 reply; 4+ messages in thread
From: danieljlaird @ 2008-07-25 17:42 UTC (permalink / raw)
  To: Daniel Laird; +Cc: linux-mips

Ignore, suffering from friday stupidity, sorting it now 
Cheers
Dan

--------------------------------------------------
From: "Daniel Laird" <daniel.j.laird@nxp.com>
Sent: Friday, July 25, 2008 5:21 PM
To: "Ralf Baechle" <ralf@linux-mips.org>
Cc: <linux-mips@linux-mips.org>
Subject: Is the new generic KGDB patch in upstream-akpm?

> I am trying to respin the patch to add pnx833x support to linux 2.6.27.
> I wanted to patch against the new generic kernel KGDB patch.
> So I removed gdb-hook etc.
> 
> However when I compile I get
> arch/mips/kernel/built-in.o: In function `early_console_write':
> early_printk.c:(.init.text+0x1450): undefined reference to `prom_putchar'
> early_printk.c:(.init.text+0x1450): relocation truncated to fit:
> R_MIPS_26 against `prom_putchar'
> early_printk.c:(.init.text+0x145c): undefined reference to `prom_putchar'
> early_printk.c:(.init.text+0x145c): relocation truncated to fit:
> R_MIPS_26 against `prom_putchar'
> make[1]: *** [.tmp_vmlinux1] Error 1
> 
> These functions were defined in my gdb-hook.c.  Do I need to move
> these somewhere else now? Or just not support EARLY_PRINTK etc.
> 
> Is this true?
> Cheers
> Daniel Laird
> 
> 

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

* Re: Is the new generic KGDB patch in upstream-akpm?
  2008-07-25 17:42 ` danieljlaird
@ 2008-07-25 17:42   ` danieljlaird
  0 siblings, 0 replies; 4+ messages in thread
From: danieljlaird @ 2008-07-25 17:42 UTC (permalink / raw)
  To: Daniel Laird; +Cc: linux-mips

Ignore, suffering from friday stupidity, sorting it now 
Cheers
Dan

--------------------------------------------------
From: "Daniel Laird" <daniel.j.laird@nxp.com>
Sent: Friday, July 25, 2008 5:21 PM
To: "Ralf Baechle" <ralf@linux-mips.org>
Cc: <linux-mips@linux-mips.org>
Subject: Is the new generic KGDB patch in upstream-akpm?

> I am trying to respin the patch to add pnx833x support to linux 2.6.27.
> I wanted to patch against the new generic kernel KGDB patch.
> So I removed gdb-hook etc.
> 
> However when I compile I get
> arch/mips/kernel/built-in.o: In function `early_console_write':
> early_printk.c:(.init.text+0x1450): undefined reference to `prom_putchar'
> early_printk.c:(.init.text+0x1450): relocation truncated to fit:
> R_MIPS_26 against `prom_putchar'
> early_printk.c:(.init.text+0x145c): undefined reference to `prom_putchar'
> early_printk.c:(.init.text+0x145c): relocation truncated to fit:
> R_MIPS_26 against `prom_putchar'
> make[1]: *** [.tmp_vmlinux1] Error 1
> 
> These functions were defined in my gdb-hook.c.  Do I need to move
> these somewhere else now? Or just not support EARLY_PRINTK etc.
> 
> Is this true?
> Cheers
> Daniel Laird
> 
> 

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

* Re: Is the new generic KGDB patch in upstream-akpm?
  2008-07-25 16:21 Is the new generic KGDB patch in upstream-akpm? Daniel Laird
  2008-07-25 17:42 ` danieljlaird
@ 2008-07-29  7:09 ` Ralf Baechle
  1 sibling, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2008-07-29  7:09 UTC (permalink / raw)
  To: Daniel Laird; +Cc: linux-mips

On Fri, Jul 25, 2008 at 05:21:33PM +0100, Daniel Laird wrote:

> I am trying to respin the patch to add pnx833x support to linux 2.6.27.
> I wanted to patch against the new generic kernel KGDB patch.
> So I removed gdb-hook etc.
> 
> However when I compile I get
> arch/mips/kernel/built-in.o: In function `early_console_write':
> early_printk.c:(.init.text+0x1450): undefined reference to `prom_putchar'
> early_printk.c:(.init.text+0x1450): relocation truncated to fit:
> R_MIPS_26 against `prom_putchar'
> early_printk.c:(.init.text+0x145c): undefined reference to `prom_putchar'
> early_printk.c:(.init.text+0x145c): relocation truncated to fit:
> R_MIPS_26 against `prom_putchar'
> make[1]: *** [.tmp_vmlinux1] Error 1
> 
> These functions were defined in my gdb-hook.c.  Do I need to move
> these somewhere else now? Or just not support EARLY_PRINTK etc.

Bad choice - early printk has no relation whatsoever to GDB - though both
might end bitbanging the same serial, so early printk code should live
in a different file.

  Ralf

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

end of thread, other threads:[~2008-07-29  7:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-25 16:21 Is the new generic KGDB patch in upstream-akpm? Daniel Laird
2008-07-25 17:42 ` danieljlaird
2008-07-25 17:42   ` danieljlaird
2008-07-29  7:09 ` Ralf Baechle

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