2009-03-05 Christophe Lyon <christophe.lyon@st.com>
[deliverable/binutils-gdb.git] / ld / testsuite / ld-arm / farcall-mixed-app.s
1 .text
2 .p2align 4
3 .globl _start
4 _start:
5 mov ip, sp
6 stmdb sp!, {r11, ip, lr, pc}
7 bl app_func
8 ldmia sp, {r11, sp, lr}
9 bx lr
10
11 .p2align 4
12 .globl app_tfunc_close
13 .type app_tfunc_close,%function
14 .thumb_func
15 .code 16
16 app_tfunc_close:
17 push {lr}
18 bl lib_func2
19 pop {pc}
20 bx lr
21
22 @ We will place the section .far_arm at 0x2100000.
23 .section .far_arm, "xa"
24
25 .arm
26 .p2align 4
27 .globl app_func
28 .type app_func,%function
29 app_func:
30 mov ip, sp
31 stmdb sp!, {r11, ip, lr, pc}
32 bl lib_func1
33 ldmia sp, {r11, sp, lr}
34 bx lr
35
36 .arm
37 .p2align 4
38 .globl app_func2
39 .type app_func2,%function
40 app_func2:
41 bx lr
42
43 @ We will place the section .far_thumb at 0x2200000.
44 .section .far_thumb, "xa"
45
46 .p2align 4
47 .globl app_tfunc
48 .type app_tfunc,%function
49 .thumb_func
50 .code 16
51 app_tfunc:
52 push {lr}
53 bl lib_func2
54 pop {pc}
55 bx lr
56
57 .data
58 .long data_obj
This page took 0.031881 seconds and 5 git commands to generate.