This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: BFD: /home/cagney/tmp/a.out(.rela.plt): relocation 0 has invalid symbol index 1
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Andrew Cagney <cagney at gnu dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 25 Jan 2005 20:23:59 +1030
- Subject: Re: BFD: /home/cagney/tmp/a.out(.rela.plt): relocation 0 has invalid symbol index 1
- References: <41F56DD0.5000807@gnu.org>
On Mon, Jan 24, 2005 at 04:51:12PM -0500, Andrew Cagney wrote:
> $ nm --synthetic ...
> BFD: /home/cagney/tmp/a.out(.rela.plt): relocation 0 has invalid symbol
> index 1
> 10010900 ? *ABS*@plt
> 10010918 B bar
It's a bug. _bfd_elf_get_synthetic_symtab is trying to slurp dynamic
relocs before the dynamic symbol table has been read.
"nm -D --synthetic" works. It looks like "nm --synthetic" is supposed
to work too. Oh well, fixing.
--
Alan Modra
IBM OzLabs - Linux Technology Centre