relax_call26.s 403 B

123456789101112131415161718192021222324252627
  1. # test for call26 relaxation via linker stubs
  2. .globl text0
  3. .section text0, "ax", @progbits
  4. call func0 # in same section
  5. call func1 # in nearby section
  6. call func2a # in distant section
  7. jmpi func2b # also in distant section
  8. func0:
  9. ret
  10. .section text1, "ax", @progbits
  11. func1:
  12. nop
  13. nop
  14. call func2a # in distant section
  15. ret
  16. .section text2, "ax", @progbits
  17. func2a:
  18. nop
  19. nop
  20. nop
  21. ret
  22. func2b:
  23. nop