old-cross-binutils/ld/testsuite/ld-arm/thumb2-b-interwork.s
Paul Brook 12a0a0fd88 2008-03-08 Paul Brook <paul@codesourcery.com>
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.
2008-03-08 14:58:14 +00:00

20 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