Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-nios2 / relax_call26_boundary.s
blobce79ebdffd8d4a7303b9e1700fbf7bbd7d88a331
1 # Test for call26 relaxation via linker stubs.
2 # This .s file is used with several different linker scripts that vary the
3 # placement of the sections in the output.
4 # Section text0 is 32 bytes long and requires at least 2 linker stubs
5 # (12 bytes each) to reach the call destinations in text2. Another stub
6 # may be required to reach func0 if the section is laid out so that it crosses
7 # a 256MB memory segment boundary.
9 .globl text0
10 .section text0, "ax", @progbits
11 call func0 # in same section
12 call func2a # in distant section
13 nop
14 nop
15 nop
16 nop
17 jmpi func2b # in distant section
19 func0:
20 ret
22 .section text2, "ax", @progbits
23 func2a:
24 nop
25 nop
26 nop
27 ret
28 func2b:
29 nop