This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bug in bfd_install_relocation?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]