2f47f5fc13
* 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.
12 lines
222 B
Makefile
12 lines
222 B
Makefile
|
|
.*: file format.*
|
|
|
|
Disassembly of section .text:
|
|
|
|
00000000 <main>:
|
|
0: b580 push {r7, lr}
|
|
2: af00 add r7, sp, #0
|
|
4: f000 fffc bl 1000 <extFunc>
|
|
8: bd80 pop {r7, pc}
|
|
a: bf00 nop
|
|
|