BFD: /home/cagney/tmp/a.out(.rela.plt): relocation 0 has invalid symbol index 1

Alan Modra amodra@bigpond.net.au
Tue Jan 25 09:54:00 GMT 2005


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



More information about the Binutils mailing list