Bug in bfd_install_relocation?

Ralf Dreesen rdreesen@uni-paderborn.de
Tue Apr 30 14:16:00 GMT 2013
I'm trying to retarget binutils-2.23.1. It appears to me, that there is
a bug in'bfd_install_relocation'  (I'm not sure).

I have a relocation entry on a symbol FOO, whichs value is 2 (addend=0).
The entry is passed to bfd_install_relocation.
The variable'relocation*  is set to'symbol->value'  in line 1017. In
line 1077, the'reloc_entry->addend'  is set to'relocation', while
'reloc_entry->sym_ptr_ptr' remains unchanged.
I finally end up with a wrong relocation entry 'FOO+2', insteand of just
FOO.

Does anybody have an idea, why bfd_install_relocation adds the symbols
value to the addend?

Thanks,
     Ralf Dreesen



More information about the Binutils mailing list