objcopy to binary versus linking to binary

Diego 'Flameeyes' Pettenò flameeyes@gmail.com
Wed Mar 14 20:55:00 GMT 2007
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/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20070314/e56002be/attachment.sig>


More information about the Binutils mailing list