Commit | Line | Data |
---|---|---|
78058a5e SL |
1 | # test for call26 relaxation via linker stubs |
2 | ||
3 | .globl text0 | |
4 | .section text0, "ax", @progbits | |
5 | call func0 # in same section | |
6 | call func1 # in nearby section | |
7 | call func2a # in distant section | |
8 | jmpi func2b # also in distant section | |
9 | ||
10 | func0: | |
11 | ret | |
12 | ||
13 | .section text1, "ax", @progbits | |
14 | func1: | |
15 | nop | |
16 | nop | |
17 | call func2a # in distant section | |
18 | ret | |
19 | ||
20 | .section text2, "ax", @progbits | |
21 | func2a: | |
22 | nop | |
23 | nop | |
24 | nop | |
25 | ret | |
26 | func2b: | |
27 | nop |