aarch64 and arm testsuite fixes for targets lacking shared libs
[deliverable/binutils-gdb.git] / ld / testsuite / ld-arm / farcall-mixed-lib1.s
CommitLineData
69c5861e
CL
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
69c5861e
CL
6
7 .p2align 4
8 .globl lib_func1
9 .type lib_func1, %function
10lib_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
022f8312
CL
16 bl lib_func3
17 bl lib_func4
69c5861e
CL
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
28lib_func2:
29 bl app_func
30 bl app_func_weak
022f8312
CL
31 bl lib_func3
32 bl lib_func4
69c5861e
CL
33 bx lr
34 .size lib_func2, . - lib_func2
This page took 0.444146 seconds and 4 git commands to generate.