150
|
1 // REQUIRES: arm
|
|
2 // RUN: llvm-mc %s -o %t.o -filetype=obj --triple=armv7-unknown-linux -arm-add-build-attributes
|
|
3 // RUN: ld.lld %t.o -o %t --export-dynamic --gc-sections
|
|
4 // RUN: llvm-nm %t | FileCheck %s
|
|
5
|
|
6 // CHECK: __Thumbv7ABSLongThunk__start
|
|
7 // CHECK: __Thumbv7ABSLongThunk__start
|
|
8
|
|
9 // CHECK: __Thumbv7ABSLongThunk_foo
|
|
10 // CHECK-NOT: __Thumbv7ABSLongThunk_foo
|
|
11
|
|
12 .thumb
|
|
13
|
|
14 .section .llvm_sympart.g1,"",%llvm_sympart
|
|
15 .asciz "part1"
|
|
16 .4byte f1
|
|
17
|
|
18 .section .llvm_sympart.g2,"",%llvm_sympart
|
|
19 .asciz "part2"
|
|
20 .4byte f2
|
|
21
|
|
22 .section .text._start,"ax",%progbits
|
|
23 .globl _start
|
|
24 _start:
|
|
25 bx lr
|
|
26 foo:
|
|
27 b f0
|
|
28 .zero 17*1048576
|
|
29
|
|
30 .section .text.f0,"ax",%progbits
|
|
31 .globl f0
|
|
32 f0:
|
|
33 b foo
|
|
34
|
|
35 .section .text.f1,"aw",%progbits
|
|
36 .globl f1
|
|
37 f1:
|
|
38 b _start
|
|
39 b foo
|
|
40
|
|
41 .section .text.f2,"ax",%progbits
|
|
42 .globl f2
|
|
43 f2:
|
|
44 b _start
|
|
45 b foo
|