~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/ld/testsuite/ld-arm/farcall-mixed-lib1.s

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
7
        .p2align 4
 
8
        .globl lib_func1
 
9
        .type lib_func1, %function
 
10
lib_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
 
16
        bl      lib_func3
 
17
        bl      lib_func4
 
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
 
28
lib_func2:
 
29
        bl      app_func
 
30
        bl      app_func_weak
 
31
        bl      lib_func3
 
32
        bl      lib_func4
 
33
        bx lr
 
34
        .size lib_func2, . - lib_func2