[Top][All Lists]
[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: |
Mon, 4 Mar 2002 14:01:03 +1030 |
User-agent: |
Mutt/1.3.25i |
On Sun, Mar 03, 2002 at 02:47:39PM -0800, Ryan T. Sammartino wrote:
>
> ld is configured for powerpc-elf, and whenever it tries to resolve
> relocations in a proprietary library that I need to use (this library
> contains things like crt0.o for the particular embedded system I'm
> working on) it crashes at line 6603 of bfd/elflink.h:
>
> - has anyone else every seen this? If so, what was the fix/workaround?
No.
> - 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.
> - 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. :)
--
Alan Modra
IBM OzLabs - Linux Technology Centre