2 ; RUN: llvm-as -o %t.bc %s
3 ; RUN: rm -f %t.lto.o %t1.lto.o
4 ; RUN: ld.lld --lto-partitions=2 -save-temps -o %t %t.bc \
6 ; RUN: llvm-readobj --symbols --dyn-syms %t | FileCheck %s
7 ; RUN: llvm-nm %t.lto.o | FileCheck --check-prefix=CHECK0 %s
8 ; RUN: llvm-nm %t1.lto.o | FileCheck --check-prefix=CHECK1 %s
11 ; CHECK-NEXT: Symbol {
12 ; CHECK-NEXT: Name: (0)
13 ; CHECK-NEXT: Value: 0x0
15 ; CHECK-NEXT: Binding: Local (0x0)
16 ; CHECK-NEXT: Type: None (0x0)
17 ; CHECK-NEXT: Other: 0
18 ; CHECK-NEXT: Section: Undefined (0x0)
20 ; CHECK-NEXT: Symbol {
21 ; CHECK-NEXT: Name: {{.*}}.o
22 ; CHECK-NEXT: Value: 0x0
24 ; CHECK-NEXT: Binding: Local
25 ; CHECK-NEXT: Type: File
26 ; CHECK-NEXT: Other: 0
27 ; CHECK-NEXT: Section: Absolute
29 ; CHECK-NEXT: Symbol {
30 ; CHECK-NEXT: Name: {{.*}}.o
31 ; CHECK-NEXT: Value: 0x0
33 ; CHECK-NEXT: Binding: Local
34 ; CHECK-NEXT: Type: File
35 ; CHECK-NEXT: Other: 0
36 ; CHECK-NEXT: Section: Absolute
38 ; CHECK-NEXT: Symbol {
39 ; CHECK-NEXT: Name: bar
42 ; CHECK-NEXT: Binding: Local (0x0)
43 ; CHECK-NEXT: Type: Function (0x2)
44 ; CHECK-NEXT: Other [ (0x2)
45 ; CHECK-NEXT: STV_HIDDEN (0x2)
47 ; CHECK-NEXT: Section: .text (0x2)
49 ; CHECK-NEXT: Symbol {
50 ; CHECK-NEXT: Name: foo
53 ; CHECK-NEXT: Binding: Global (0x1)
54 ; CHECK-NEXT: Type: Function (0x2)
55 ; CHECK-NEXT: Other: 0
56 ; CHECK-NEXT: Section: .text (0x2)
59 ; CHECK-NEXT: DynamicSymbols [
62 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
63 target triple = "x86_64-unknown-linux-gnu"