1# test for call26 relaxation via linker stubs
2#
3# The purpose of this test is to ensure that, when section text0 straddles
4# a 256MB memory segment boundary with calls to the same function on either
5# side, the stub caching doesn't get confused and incorrectly use a stub
6# on the wrong side.
7
8.globl text0
9.section text0, "ax", @progbits
10	call func2a	# in distant section
11	call func2a	# in distant section
12	nop
13	nop
14	nop
15	nop
16	nop
17	nop
18	nop
19	nop
20	nop
21	nop
22	call func2a	# in distant section
23	call func2a	# in distant section
24
25.section text2, "ax", @progbits
26.globl func2a
27func2a:
28	ret
29