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

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/gold/testsuite/arm_farcall_thumb_arm.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
@ Test to ensure that a Thumb to ARM call exceeding 4Mb generates a stub.
 
2
@ Check that we can generate two types of stub in the same section.
 
3
 
 
4
        .global _start
 
5
        .syntax unified
 
6
 
 
7
@ We will place the section .text at 0x1c01010.
 
8
 
 
9
        .text
 
10
        .thumb_func
 
11
_start:
 
12
        .global bar
 
13
        bl bar
 
14
@ This call is close enough to generate a "short branch" stub
 
15
@ or no stub if blx is available.
 
16
        .space 0x0300000
 
17
        bl bar
 
18
 
 
19
@ We will place the section .foo at 0x2001014.
 
20
 
 
21
        .section .foo, "xa"
 
22
 
 
23
        .arm
 
24
        .type bar, %function
 
25
bar:
 
26
        bx lr
 
27