relax_call26_boundary.s 674 B

1234567891011121314151617181920212223242526272829
  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. .globl text0
  9. .section text0, "ax", @progbits
  10. call func0 # in same section
  11. call func2a # in distant section
  12. nop
  13. nop
  14. nop
  15. nop
  16. jmpi func2b # in distant section
  17. func0:
  18. ret
  19. .section text2, "ax", @progbits
  20. func2a:
  21. nop
  22. nop
  23. nop
  24. ret
  25. func2b:
  26. nop