aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/farcall-mix2.s
blob: 803e8d08f878df49acaf05157cf233a29f6bc8fb (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
46
47
48
49
50
51
@ Test to ensure that ARM calls exceeding 32Mb generate stubs.

	.global _start
	.syntax unified

@ We will place the section .text at 0x1000.

	.text

_start:
	bl bar
	bl bar2


@ We will place the section .mytext at 0x2000.

	.section .mytext, "xa"
	bl bar3
	bl bar4
	bl bar5

@ We will place the section .foo at 0x2003020.

	.section .foo, "xa"

	.global bar
	.thumb_func
bar:
	bx lr

	.arm
	.global bar2
	.type bar2, %function
bar2:
	bx lr

	.global bar3
	.type bar3, %function
bar3:
	bx lr

	.global bar4
	.thumb_func
bar4:
	bx lr

	.global bar5
	.type bar5, %function
bar5:
	bx lr