blob: 23960f9ab90c5257003f1f60ebcb51d0c5d42d2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# arm_bl_in_range.s
# Test ARM bl instructions just within branch range limits.
.syntax unified
.arch armv5te
.section .text.pre,"x"
# Add padding so that target is just within branch range.
.space 12
.align 2
.global _backward_target
_backward_target:
bx lr
.size _backward_target, .-_backward_target
.text
.align 2
# Define _start so that linker does not complain.
.global _start
_start:
bx lr
.size _start, .-_start
.global _backward_test
_backward_test:
bl _backward_target
.size _backward_test, .-_backward_test
.global _forward_test
_forward_test:
bl _forward_target
.size _forward_test, .-_forward_test
.section .text.post,"x"
# Add padding so that target is just within of branch range.
.space 12
.align 2
.global _forward_target
_forward_target:
bx lr
.size _forward_target, .-_forward_target
|