arm_farcall_thumb_arm.s 509 B

12345678910111213141516171819202122232425262728
  1. @ Test to ensure that a Thumb to ARM call exceeding 4Mb generates a stub.
  2. @ Check that we can generate two types of stub in the same section.
  3. .global _start
  4. .syntax unified
  5. @ We will place the section .text at 0x1c01010.
  6. .text
  7. .thumb_func
  8. _start:
  9. .global bar
  10. bl bar
  11. @ This call is close enough to generate a "short branch" stub
  12. @ or no stub if blx is available.
  13. .space 0x0300000
  14. bl bar
  15. @ We will place the section .foo at 0x2001014.
  16. .section .foo, "xa"
  17. .arm
  18. .type bar, %function
  19. bar:
  20. bx lr