linux-mips
[Top] [All Lists]

Re: ELF/Modutils problem

To: Keith Owens <kaos@melbourne.sgi.com>
Subject: Re: ELF/Modutils problem
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Thu, 21 Sep 2000 15:36:31 +0200
Cc: Brady Brown <bbrown@ti.com>, SGI news group <linux-mips@oss.sgi.com>
In-reply-to: <1289.969409465@kao2.melbourne.sgi.com>; from kaos@melbourne.sgi.com on Wed, Sep 20, 2000 at 11:24:25AM +1100
References: <39C7FEBC.5DB355A2@ti.com> <1289.969409465@kao2.melbourne.sgi.com>
Sender: owner-linux-mips@oss.sgi.com
On Wed, Sep 20, 2000 at 11:24:25AM +1100, Keith Owens wrote:

> On Tue, 19 Sep 2000 18:03:08 -0600, 
> Brady Brown <bbrown@ti.com> wrote:
> >I'm having trouble getting modutils 2.3.10 to work on a little endian
> >MIPS box running a 2.4.0-test3 kernel. I am cross compiling the kernel
> >and modules on an i386 using egcs1.0.3a-2 and binutils2.8.1-1. It
> >appears that the symbol table format in the ELF file created by
> >mipsel-linux-gcc during a module build is incorrect.
> >
> >As I read the ELF 1.1 spec - all symbols with STB_LOCAL bindings should
> >precede all other symbols (weak and global) in the symbol table.
> 
> modutils 2.3.11 includes a sanity check on the number of local symbols
> precisely because of this MIPS problem.  I agree with you that mips gcc
> is violating the ELF standard, 2.3.11 just detects this and issues an
> error message instead of overwriting memory but gcc needs to be fixed.

And gcc has nothing to with it so it won't need to be fixed ...

  Ralf

<Prev in Thread] Current Thread [Next in Thread>