1// REQUIRES: arm
2// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t.o
3// RUN: ld.lld %t.o -o %t
4// RUN: llvm-objdump -d %t --triple=thumbv7a | FileCheck %s
5 .syntax unified
6 .global _start, foo
7 .type _start, %function
8 .section .text.start,"ax",%progbits
9_start:
10 bl _start
11 .section .text.dummy1,"ax",%progbits
12 .space 0xfffffe
13 .section .text.foo,"ax",%progbits
14  .type foo, %function
15foo:
16 bl _start
17
18// CHECK: Disassembly of section .text:
19// CHECK-EMPTY:
20// CHECK-NEXT: <_start>:
21// CHECK-NEXT:    200b4:       ff f7 fe ff     bl      0x200b4 <_start>
22// CHECK: <__Thumbv7ABSLongThunk__start>:
23// CHECK-NEXT:    200b8:       ff f7 fc bf     b.w     0x200b4 <_start>
24
25// CHECK: <__Thumbv7ABSLongThunk__start>:
26// CHECK:       10200bc:       40 f2 b5 0c     movw    r12, #181
27// CHECK-NEXT:  10200c0:       c0 f2 02 0c     movt    r12, #2
28// CHECK-NEXT:  10200c4:       60 47   bx      r12
29// CHECK: <foo>:
30// CHECK-NEXT:  10200c6:       ff f7 f9 ff     bl      0x10200bc <__Thumbv7ABSLongThunk__start>
31