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]

Re: [ARM] BE8 support in relocations


On 11.02.2010 16:45, Daniel Jacobowitz wrote:
On Thu, Feb 11, 2010 at 04:36:01PM +0100, Christophe LYON wrote:
Indeed, in ARM's BE8 mode, data and code have different endianness,
but this function uses bfd_get_XX and bfd_put_XX which don't take
this into account.

Yes. You never relocate a BE8 input file. BE8 is something that only happens to linker output, and the byte swapping happens at the end.


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.

Christophe.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]