Home | History | Annotate | Download | only in ld-arm
      1 @ Test to ensure that ARM calls exceeding 32Mb generate stubs.
      2 
      3 	.global _start
      4 	.syntax unified
      5 
      6 @ We will place the section .text at 0x1000.
      7 
      8 	.text
      9 
     10 _start:
     11 	bl bar
     12 	bl bar2
     13 
     14 
     15 @ We will place the section .foo at 0x2003020.
     16 
     17 	.section .foo, "xa"
     18 
     19 	.global bar
     20 	.thumb_func
     21 bar:
     22 	bx lr
     23 
     24 	.arm
     25 	.global bar2
     26 	.type bar2, %function
     27 bar2:
     28 	bx lr
     29 
     30 	.global bar3
     31 	.type bar3, %function
     32 bar3:
     33 	bx lr
     34 
     35 	.global bar4
     36 	.thumb_func
     37 bar4:
     38 	bx lr
     39 
     40 	.global bar5
     41 	.type bar5, %function
     42 bar5:
     43 	bx lr
     44 
     45