[patch] Arm BE8 stubs
Paul Brook
paul@codesourcery.com
Fri May 19 00:31:00 GMT 2006
The Arm linker backend uses elf32_arm_write_section to byteswap code when
generating BE8 format images. However this hook is not called for linker
generated sections (e.g the PLT and interworking stub sections).
The attached patch performs appropriate byteswapping when filling in the plt
and interworking stubs.
Tested with cross to arm-none-eabi.
Ok?
Paul
2006-05-18 Paul Brook <paul@codesourcery.com>
* elf32-arm.c (put_arm_insn, put_thumb_insn): New functions.
(elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
elf32_arm_finish_dynamic_symbol): Use them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.be8_stub
Type: text/x-diff
Size: 9430 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060519/2d838068/attachment.bin>
More information about the Binutils
mailing list