]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/testsuite/ld-arm/thumb2-b-interwork.s
Imported binutils-2.20
[msp430-binutils.git] / ld / testsuite / ld-arm / thumb2-b-interwork.s
diff --git a/ld/testsuite/ld-arm/thumb2-b-interwork.s b/ld/testsuite/ld-arm/thumb2-b-interwork.s
new file mode 100644 (file)
index 0000000..4452a8f
--- /dev/null
@@ -0,0 +1,20 @@
+@ 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
+