aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/Inputs/arm-thumb-blx-targets.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/Inputs/arm-thumb-blx-targets.s')
-rw-r--r--test/ELF/Inputs/arm-thumb-blx-targets.s36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/ELF/Inputs/arm-thumb-blx-targets.s b/test/ELF/Inputs/arm-thumb-blx-targets.s
new file mode 100644
index 000000000000..4585ac4399cb
--- /dev/null
+++ b/test/ELF/Inputs/arm-thumb-blx-targets.s
@@ -0,0 +1,36 @@
+ .syntax unified
+ .arm
+ .section .R_ARM_CALL24_callee_low, "ax",%progbits
+ .align 2
+ .globl callee_low
+ .type callee_low,%function
+callee_low:
+ bx lr
+
+ .section .R_ARM_CALL24_callee_thumb_low, "ax",%progbits
+ .balign 0x100
+ .thumb
+ .type callee_thumb_low,%function
+ .globl callee_thumb_low
+callee_thumb_low:
+ bx lr
+
+ .section .R_ARM_CALL24_callee_high, "ax",%progbits
+ .balign 0x100
+ .arm
+ .globl callee_high
+ .type callee_high,%function
+callee_high:
+ bx lr
+
+ .section .R_ARM_CALL24_callee_thumb_high, "ax",%progbits
+ .balign 0x100
+ .thumb
+ .type callee_thumb_high,%function
+ .globl callee_thumb_high
+callee_thumb_high:
+ bx lr
+
+ .globl blx_far
+ .type blx_far, %function
+blx_far = 0x1010018