[RFA] ARM OABI - pc-relative relocations

Alan Modra amodra@bigpond.net.au
Sat Dec 13 04:32:00 GMT 2003


On Fri, Dec 12, 2003 at 09:49:36PM +0100, Jerome Guitton wrote:
>    c:   ebfffffb        bl      0 <r>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> Here is the problem. Even though arm-oabi uses RELA, an implicit addend
> has been generated (-0xc). The relocation entry is:

This shouldn't really matter.  When applying a reloc, RELA targets are
supposed to ignore the section contents in the field that the reloc
replaces.

Ah!  On looking at elfarm_oabi.c, I see that src_mask is non-zero on a
number of reloc howtos.  That's the real bug that needs fixing.  See the
description of src_mask in bfd/reloc.c.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list