mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
12a0a0fd88
bfd/ * elf32-arm.c (insert_thumb_branch): Rewrite. (elf32_thumb_to_arm_stub): Use new insert_thumb_branch. ld/testsuite/ * ld-arm/arm-elf.exp (armeabitests): Add thumb2-b-interwork. * ld-arm/thumb2-b-interwork.d: New test. * ld-arm/thumb2-b-interwork.s: New test.
21 lines
308 B
ArmAsm
21 lines
308 B
ArmAsm
@ Test to ensure that a Thumb-2 B.W can branch to an ARM funtion.
|
|
|
|
.arch armv7-a
|
|
.global _start
|
|
.syntax unified
|
|
.text
|
|
.thumb_func
|
|
|
|
_start:
|
|
b.w bar
|
|
|
|
@ Put this in a separate section to force the assembler to generate a reloc
|
|
|
|
.arm
|
|
.section .after, "xa"
|
|
.global bar
|
|
.type bar, %function
|
|
bar:
|
|
bx lr
|
|
|