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] | |
On Wednesday 14 March 2007, Hans-Peter Nilsson wrote:
> My initial guess (not wanting to spend time analyzing this but
> having experience doing similar) is that there's a bug in
> h8_elf_howto_table.
Thanks, this seems to be the case. In the code for
elf32_h8_final_link_relocate I found this comment:
/* The value is relative to the start of the instruction,
not the relocation offset. Subtract 1 to account for
this minor issue. */
value -= 1;
on the R_H8_PCREL8 relocation, that is the one that seems to be used in the
object files. A similar comment is there for R_H8_PCREL16, too.
Now, I need to understand how the howto_table works, and I can see for a
fix :)
Thanks for pointing me at the right direction.
--
Diego "Flameeyes" Pettenò
http://farragut.flameeyes.is-a-geek.org/
Attachment:
pgp00000.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |