PR ld/15302
authorNick Clifton <nickc@redhat.com>
Thu, 13 Jun 2013 12:36:02 +0000 (12:36 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 13 Jun 2013 12:36:02 +0000 (12:36 +0000)
commit2f47f5fc1338185064d87c4ab54773a9f4cfe796
treee84941b49ccded12a0fbd2ae29dbb6dd448c65d6
parent909c7f9cbf0b6c33f14a68be54723c89cfbadf8c
PR ld/15302
* elf32-arm.c (allocate_dynrelocs_for_symbol): Transform
ST_BRANCH_TO_ARM into ST_BRANCH_TO_THUMB if the target only
supports thumb instructions.

PR ld/15302
* ld-arm/branch-lks-sym.ld: New script.
* ld-arm/thumb-b-lks-sym.s: New test.
* ld-arm/thumb-b-lks-sym.d: Expected disassembly.
* ld-arm/thumb-bl-lks-sym.s: New test.
* ld-arm/thumb-bl-lks-sym.d: Expected disassembly.
* ld-arm/arm-elf.exp: Run the new tests.
bfd/ChangeLog
bfd/elf32-arm.c
ld/testsuite/ChangeLog
ld/testsuite/ld-arm/arm-elf.exp
ld/testsuite/ld-arm/branch-lks-sym.ld [new file with mode: 0644]
ld/testsuite/ld-arm/thumb-b-lks-sym.d [new file with mode: 0644]
ld/testsuite/ld-arm/thumb-b-lks-sym.s [new file with mode: 0644]
ld/testsuite/ld-arm/thumb-bl-lks-sym.d [new file with mode: 0644]
ld/testsuite/ld-arm/thumb-bl-lks-sym.s [new file with mode: 0644]