2009-04-17 Christophe Lyon <christophe.lyon@st.com>
[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 ldmia sp, {r11, sp, lr}
18 bx lr
19 .size lib_func1, . - lib_func1
20
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
This page took 0.031202 seconds and 5 git commands to generate.