Commit | Line | Data |
---|---|---|
133d72e9 NC |
1 | @ Test to ensure that ARM calls exceeding 32Mb generate stubs. |
2 | ||
3 | .global _start | |
4 | .syntax unified | |
5 | ||
6 | @ We will place the section .text at 0x1000. | |
7 | ||
8 | .text | |
9 | ||
10 | _start: | |
11 | bl bar | |
12 | bl bar2 | |
13 | ||
14 | ||
15 | @ We will place the section .mytext at 0x2000. | |
16 | ||
17 | .section .mytext, "xa" | |
18 | bl bar3 | |
19 | bl bar4 | |
20 | bl bar5 | |
21 | ||
22 | @ We will place the section .foo at 0x2003020. | |
23 | ||
24 | .section .foo, "xa" | |
25 | ||
26 | .global bar | |
27 | .thumb_func | |
28 | bar: | |
29 | bx lr | |
30 | ||
31 | .arm | |
32 | .global bar2 | |
33 | .type bar2, %function | |
34 | bar2: | |
35 | bx lr | |
36 | ||
37 | .global bar3 | |
38 | .type bar3, %function | |
39 | bar3: | |
40 | bx lr | |
41 | ||
42 | .global bar4 | |
43 | .thumb_func | |
44 | bar4: | |
45 | bx lr | |
46 | ||
47 | .global bar5 | |
48 | .type bar5, %function | |
49 | bar5: | |
50 | bx lr | |
51 |