This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFA] ARM OABI - pc-relative relocations
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: Jerome Guitton <guitton at act-europe dot fr>, binutils at sources dot redhat dot com, Richard dot Earnshaw at arm dot com
- Date: Sat, 13 Dec 2003 11:19:32 +0000
- Subject: Re: [RFA] ARM OABI - pc-relative relocations
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> 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.
It really shouldn't matter at all now: nobody should be using the oabi
code and I personally think it's time we GC'ed it.
R.
For reference, the OABI code was added before ARM defined a specification
for ELF. IIRC it was only around for about a year before it was
superseded by the NABI implementation.