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: Ryan T. Sammartino
Subject: Re: powerpc-elf ld crashes
Date: Mon, 4 Mar 2002 13:17:47 -0800
User-agent: Mutt/1.3.27i

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.

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?


> > - what's a good place to start figuring out how ld works if you've never
> >   worked with its internals before? :)
> 
> Start at the beginning.  :)


And follow the yellow brick road?  I mean, main()? :)


Thanks for the help.


-- 
Ryan T. Sammartino
http://members.shaw.ca/ryants/
You can observe a lot just by watching.  -- Yogi Berra



reply via email to

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