bfd/
[binutils.git] / ld / testsuite / ld-arm / farcall-mixed-lib1.s
bloba64c0bbbb5db73be4b1ef961437cea3b374958cb
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.
5 .text
6 .arch armv5t
8 .p2align 4
9 .globl lib_func1
10 .type lib_func1, %function
11 lib_func1:
12 mov ip, sp
13 stmdb sp!, {r11, ip, lr, pc}
14 bl app_func
15 .weak app_func_weak
16 bl app_func_weak
17 ldmia sp, {r11, sp, lr}
18 bx lr
19 .size lib_func1, . - lib_func1
21 .space 0x1000000
22 .p2align 4
23 .globl lib_func2
24 .type lib_func2, %function
25 .thumb_func
26 .code 16
27 lib_func2:
28 bl app_func
29 bl app_func_weak
30 bx lr
31 .size lib_func2, . - lib_func2