Home | History | Annotate | Download | only in ld-arm
      1 @ Create a large shared library so that calls through PLT to an undef
      2 @ symbol require insertion of a long branch stub.
      3 @ Check also calls to an undef weak symbol.
      4 
      5 	.text
      6 
      7 	.p2align 4
      8 	.globl lib_func1
      9 	.type lib_func1, %function
     10 lib_func1:
     11 	mov	ip, sp
     12 	stmdb	sp!, {r11, ip, lr, pc}
     13 	bl	app_func
     14 	.weak	app_func_weak
     15 	bl	app_func_weak
     16 	bl	lib_func3
     17 	bl	lib_func4
     18 	ldmia	sp, {r11, sp, lr}
     19 	bx lr
     20 	.size lib_func1, . - lib_func1
     21 
     22 	.space 0x1000000
     23 	.p2align 4
     24 	.globl lib_func2
     25 	.type lib_func2, %function
     26 	.thumb_func
     27 	.code 16
     28 lib_func2:
     29 	bl	app_func
     30 	bl	app_func_weak
     31 	bl	lib_func3
     32 	bl	lib_func4
     33 	bx lr
     34 	.size lib_func2, . - lib_func2
     35