bfd/
[deliverable/binutils-gdb.git] / ld / testsuite / ld-arm / farcall-mixed-lib1.s
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 .arch armv5t
7
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 bl lib_func3
18 bl lib_func4
19 ldmia sp, {r11, sp, lr}
20 bx lr
21 .size lib_func1, . - lib_func1
22
23 .space 0x1000000
24 .p2align 4
25 .globl lib_func2
26 .type lib_func2, %function
27 .thumb_func
28 .code 16
29 lib_func2:
30 bl app_func
31 bl app_func_weak
32 bl lib_func3
33 bl lib_func4
34 bx lr
35 .size lib_func2, . - lib_func2
This page took 0.031803 seconds and 4 git commands to generate.