Add tests for PR ld/20513
[deliverable/binutils-gdb.git] / ld / testsuite / ld-nios2 / relax_call26_boundary.s
CommitLineData
78058a5e
SL
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.
8
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
18
19func0:
20 ret
21
22.section text2, "ax", @progbits
23func2a:
24 nop
25 nop
26 nop
27 ret
28func2b:
29 nop
This page took 0.136527 seconds and 4 git commands to generate.