bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: powerpc-elf ld crashes


From: Alan Modra
Subject: Re: powerpc-elf ld crashes
Date: Tue, 5 Mar 2002 14:13:17 +1030
User-agent: Mutt/1.3.25i

On Mon, Mar 04, 2002 at 01:17:47PM -0800, Ryan T. Sammartino wrote:
> On Mon, Mar 04, 2002 at 02:01:03PM +1030, Alan Modra wrote:
> > On Sun, Mar 03, 2002 at 02:47:39PM -0800, Ryan T. Sammartino wrote:
> > > 
> > > - what does it mean when h is NULL?  Or is the problem that r_symndx
> > >   and/or extsymoff are incorrect?
> > 
> > h NULL here implies your object file doesn't adhere to the ELF standard,
> > and has some local symbols after the first global sym in the symbol
> > table, or that there is a problem in mapping the symbol section.  You
> > can easily check for the first case by dumping the symbol table with
> > readelf -s.  For some reason, code to handle this situation is only
> > enabled for mips targets.
> > 
> > The second case means you have hit the "Who knows?" comment at
> > elflink.h:6439.  Looking at isym might show something interesting.
> >
> 
> Well, by doing a simple objcopy broken.o fixed.o, I can now link
> without crashing.

I'd be a little worried about whether objcopy has done the right thing.
Did you investigate which of the two possibilities I mentioned above 
was happening?

> Unfortunately, I have run into the dreaded "relecation truncated to fit"
> linker error :(
> 
> The very strange thing is, most of the symbols that were truncated came
> from libgcc... so I recompiled libgcc with -G0, and I still get that
> message.  Anyone have any ideas about that?
> 
> Some of the symbols are coming from OS archives for which I do not have
> source... how does one fix "relocation truncated to fit" if one cannot
> recompile with -G0?

Complain to your vendor.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



reply via email to

[Prev in Thread] Current Thread [Next in Thread]