Home | History | Annotate | Download | only in ld-nios2
      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 
     19 func0:
     20 	ret
     21 
     22 .section text2, "ax", @progbits
     23 func2a:
     24 	nop
     25 	nop
     26 	nop
     27 	ret
     28 func2b:
     29 	nop
     30