Ralf Baechle wrote:
> On Fri, Sep 22, 2000 at 08:57:00PM +1100, Keith Owens wrote:
> > >On Wed, Sep 20, 2000 at 11:24:25AM +1100, Keith Owens wrote:
> > >> 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 ...
> > Point taken, I should have said the MIPS toolchain instead of gcc.
> > Something in the toolchain is generating an ELF object that does not
> > follow the rules. Can we catch someone's attention to get it fixed?
> Ulf Carlsson <firstname.lastname@example.org> is currently maintaining binutils.
> Ulf, you got the bandwidth to take a look at this? After a look over the
> gas code it's not obvious to my why this doesn't work on MIPS but on
> all the other architectures, you probably know the internals of this beast
> better than I do.
I'm not sure what exact piece of the tool chain forms the un-linked elf file,
but as I stated originally the symbol table in the .o file is incorrect after
compiling and then if I do an incremental link (-r) the symbol table and length
pointer have been corrected. Based upon this it looks like the output from the
linker is correct, but the output from the earlier stage is wrong.