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]

[Patch, ARM] Fix bfd/ld bug PR15302


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.

Attachment: thumb-only-call-link-script-symbol-v2.txt
Description: Text document


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