[Patch, ARM] Fix bfd/ld bug PR15302

Terry Guo terry.guo@arm.com
Wed Jul 10 02:23:00 GMT 2013


Hi,

This is an updated fix for PR15302. The branch type is corrected to
ST_BRANCH_TO_THUMB only when we resolve function call relocations for
thumb-only targets. Tested with LD and GCC regression test on QEMU
cortex-m3, no regressions. Is it ok to commit?

BR,
Terry

bfd/ChangeLog:
2013-07-10  Terry Guo  <terry.guo@arm.com>

        * elf32-arm.c (arm_type_of_stub): Don't use ST_BRANCH_TO_ARM for
thumb only targets.
        (elf32_arm_final_link_relocate): Likewise.

ld/testsuite/ChangeLog:
2013-07-10  Terry Guo  <terry.guo@arm.com>

        * ld-arm/thumb-b-lks-sym.d: Updated to be more flexible.
        * ld-arm/thumb-bl-lks-sym.d: Likewise.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: thumb-only-call-link-script-symbol-v2.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20130710/3eb13dfd/attachment.txt>


More information about the Binutils mailing list