File tree 4 files changed +30
-6
lines changed
4 files changed +30
-6
lines changed Original file line number Diff line number Diff line change
1
+ .globl eager
2
+ eager:
3
+ retq
4
+
5
+ .globl ogre
6
+ ogre:
7
+ retq
Original file line number Diff line number Diff line change
1
+ target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
2
+ target triple = "x86_64-unknown-linux-gnu"
3
+
4
+ define void @eager () {
5
+ ret void
6
+ }
7
+
8
+ define void @ogre () {
9
+ ret void
10
+ }
Original file line number Diff line number Diff line change 3
3
; RUN: llvm-as %s -o %t1.o
4
4
; RUN: llvm-as %p/Inputs/start-lib1.ll -o %t2.o
5
5
; RUN: llvm-as %p/Inputs/start-lib2.ll -o %t3.o
6
+ ; RUN: llvm-as %p/Inputs/eager.ll -o %t-eager.o
6
7
;
7
- ; RUN: ld.lld -shared -o %t3 %t1.o %t2.o %t3.o
8
+ ; RUN: ld.lld -shared -o %t3 %t1.o %t2.o %t3.o %t-eager.o
8
9
; RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST1 %s
9
10
; TEST1: Name: foo
10
11
; TEST1: Name: bar
11
12
;
12
- ; RUN: ld.lld -shared -o %t3 -u bar %t1.o --start-lib %t2.o %t3.o
13
+ ; RUN: ld.lld -shared -o %t3 -u bar %t1.o --start-lib %t2.o %t3.o %t-eager.o
13
14
; RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST2 %s
14
15
; TEST2-NOT: Name: foo
15
16
; TEST2: Name: bar
16
17
;
17
- ; RUN: ld.lld -shared -o %t3 %t1.o --start-lib %t2.o %t3.o
18
+ ; RUN: ld.lld -shared -o %t3 %t1.o --start-lib %t2.o %t3.o %t-eager.o
18
19
; RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST3 %s
19
20
; TEST3-NOT: Name: foo
20
21
; TEST3-NOT: Name: bar
21
22
22
23
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
23
24
target triple = "x86_64-unknown-linux-gnu"
24
25
26
+ declare void @eager ()
27
+
25
28
define void @_start () {
29
+ call void @eager ()
26
30
ret void
27
31
}
Original file line number Diff line number Diff line change 5
5
// RUN: %p/Inputs/start-lib1.s -o %t2.o
6
6
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \
7
7
// RUN: %p/Inputs/start-lib2.s -o %t3.o
8
+ // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \
9
+ // RUN: %p/Inputs/eager.s -o %t-eager.o
8
10
9
- // RUN: ld.lld -o %t3 %t1.o %t2.o %t3.o
11
+ // RUN: ld.lld -o %t3 %t1.o %t2.o %t3.o %t-eager.o
10
12
// RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST1 %s
11
13
// TEST1: Name: foo
12
14
// TEST1: Name: bar
13
15
14
- // RUN: ld.lld -o %t3 %t1.o -u bar --start-lib %t2.o %t3.o
16
+ // RUN: ld.lld -o %t3 %t1.o -u bar --start-lib %t2.o %t3.o %t-eager.o
15
17
// RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST2 %s
16
18
// TEST2-NOT: Name: foo
17
19
// TEST2: Name: bar
18
20
19
- // RUN: ld.lld -o %t3 %t1.o --start-lib %t2.o %t3.o
21
+ // RUN: ld.lld -o %t3 %t1.o --start-lib %t2.o %t3.o %t-eager.o
20
22
// RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST3 %s
21
23
// TEST3-NOT: Name: foo
22
24
// TEST3-NOT: Name: bar
32
34
33
35
.globl _start
34
36
_start:
37
+ callq eager
You can’t perform that action at this time.
0 commit comments