This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [ARM] BE8 support in relocations
On Thu, Feb 11, 2010 at 04:59:36PM +0100, Christophe LYON wrote:
> I think this can happen when relocating the stubs.
> Actually I am making some tests around arm_build_one_stub(), where
> you can read this comment [not sure who wrote it]:
>
> /* Note: _bfd_final_link_relocate doesn't handle these relocations
> properly. We should probably use this function unconditionally,
> rather than only for certain relocations listed in the enclosing
> conditional, for the sake of consistency. */
>
> Thus I am trying to call elf32_arm_final_link_relocate, and I am
> facing the problem mentioned above.
If the mapping symbols are placed in the right location, then be8 is
handled much later: in elf32_arm_write_section. Nothing should be
byteswapped at the point of elf32_arm_final_link_relocate.
Maybe those mapping symbols don't end up in the map used by
elf32_arm_write_section?
--
Daniel Jacobowitz
CodeSourcery