Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Relocation errors
@ 2003-10-27 13:55 David Kesselring
  2003-10-27 14:58 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: David Kesselring @ 2003-10-27 13:55 UTC (permalink / raw)
  To: linux-mips

I'm getting the error "Unhandled relocation of type xx" on insmod. Are the
"types" documented somewhere? I am I correct that these "types" are
architecture specific?

David Kesselring
Atmel MMC
dkesselr@mmc.atmel.com
919-462-6587

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

* Re: Relocation errors
  2003-10-27 13:55 Relocation errors David Kesselring
@ 2003-10-27 14:58 ` Daniel Jacobowitz
  2003-10-27 15:06   ` David Kesselring
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2003-10-27 14:58 UTC (permalink / raw)
  To: David Kesselring; +Cc: linux-mips

On Mon, Oct 27, 2003 at 08:55:19AM -0500, David Kesselring wrote:
> I'm getting the error "Unhandled relocation of type xx" on insmod. Are the
> "types" documented somewhere? I am I correct that these "types" are
> architecture specific?

Yes.  Try an ELF specification - there's a MIPS processor supplement
(psABI) floating around.  What's the "xx"?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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

* Re: Relocation errors
  2003-10-27 14:58 ` Daniel Jacobowitz
@ 2003-10-27 15:06   ` David Kesselring
  2003-10-27 15:14     ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: David Kesselring @ 2003-10-27 15:06 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: linux-mips

It is type 8. Any ideas? This is from an intel driver that I've cross
compiled for mips. I used these options;
-mcpu=r4600 -mips2 -mno-abicalls -fno-pic -mlong-calls -Wa,--trap -DMODULE
-pipe -O3 -fomit-frame-pointer -fno-strict-aliasing

Thanks, David

On Mon, 27 Oct 2003, Daniel Jacobowitz wrote:

> On Mon, Oct 27, 2003 at 08:55:19AM -0500, David Kesselring wrote:
> > I'm getting the error "Unhandled relocation of type xx" on insmod. Are the
> > "types" documented somewhere? I am I correct that these "types" are
> > architecture specific?
>
> Yes.  Try an ELF specification - there's a MIPS processor supplement
> (psABI) floating around.  What's the "xx"?
>
> --
> Daniel Jacobowitz
> MontaVista Software                         Debian GNU/Linux Developer
>
>

David Kesselring
Atmel MMC
dkesselr@mmc.atmel.com
919-462-6587

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

* Re: Relocation errors
  2003-10-27 15:06   ` David Kesselring
@ 2003-10-27 15:14     ` Daniel Jacobowitz
  2003-10-27 16:06       ` Ralf Baechle
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2003-10-27 15:14 UTC (permalink / raw)
  To: David Kesselring; +Cc: linux-mips

Take a look at /usr/include/elf.h:
#define R_MIPS_LITERAL          8       /* 16 bit literal entry */

In this case it's not very informative.  But the problem is probably
mismatched CFLAGS.  Take another look at the options the kernel is
built with - you lost -G 0.  See if that does it.


On Mon, Oct 27, 2003 at 10:06:53AM -0500, David Kesselring wrote:
> It is type 8. Any ideas? This is from an intel driver that I've cross
> compiled for mips. I used these options;
> -mcpu=r4600 -mips2 -mno-abicalls -fno-pic -mlong-calls -Wa,--trap -DMODULE
> -pipe -O3 -fomit-frame-pointer -fno-strict-aliasing
> 
> Thanks, David
> 
> On Mon, 27 Oct 2003, Daniel Jacobowitz wrote:
> 
> > On Mon, Oct 27, 2003 at 08:55:19AM -0500, David Kesselring wrote:
> > > I'm getting the error "Unhandled relocation of type xx" on insmod. Are the
> > > "types" documented somewhere? I am I correct that these "types" are
> > > architecture specific?
> >
> > Yes.  Try an ELF specification - there's a MIPS processor supplement
> > (psABI) floating around.  What's the "xx"?
> >
> > --
> > Daniel Jacobowitz
> > MontaVista Software                         Debian GNU/Linux Developer
> >
> >
> 
> David Kesselring
> Atmel MMC
> dkesselr@mmc.atmel.com
> 919-462-6587
> 
> 

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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

* Re: Relocation errors
  2003-10-27 15:14     ` Daniel Jacobowitz
@ 2003-10-27 16:06       ` Ralf Baechle
  0 siblings, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2003-10-27 16:06 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: David Kesselring, linux-mips

On Mon, Oct 27, 2003 at 10:14:21AM -0500, Daniel Jacobowitz wrote:
> Date: Mon, 27 Oct 2003 10:14:21 -0500
> From: Daniel Jacobowitz <dan@debian.org>
> To: David Kesselring <dkesselr@mmc.atmel.com>
> Cc: linux-mips@linux-mips.org
> Subject: Re: Relocation errors
> Content-Type: text/plain; charset=us-ascii
> 
> Take a look at /usr/include/elf.h:
> #define R_MIPS_LITERAL          8       /* 16 bit literal entry */
> 
> In this case it's not very informative.  But the problem is probably
> mismatched CFLAGS.  Take another look at the options the kernel is
> built with - you lost -G 0.  See if that does it.

My gcc patches used to set this to zero because the -G optimization doesn't
work on Linux; I think HJ Lu's (?) gcc patches lost this.

  Ralf

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

end of thread, other threads:[~2003-10-27 16:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-27 13:55 Relocation errors David Kesselring
2003-10-27 14:58 ` Daniel Jacobowitz
2003-10-27 15:06   ` David Kesselring
2003-10-27 15:14     ` Daniel Jacobowitz
2003-10-27 16:06       ` Ralf Baechle

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