2 ; RUN: llvm-as -o %t.bc %s
3 ; RUN: ld.lld -m elf_x86_64 --lto-partitions=2 -save-temps -o %t %t.bc \
5 ; RUN: llvm-readobj -t -dyn-symbols %t | FileCheck %s
6 ; RUN: llvm-nm %t0.lto.o | FileCheck --check-prefix=CHECK0 %s
7 ; RUN: llvm-nm %t1.lto.o | FileCheck --check-prefix=CHECK1 %s
10 ; CHECK-NEXT: Symbol {
11 ; CHECK-NEXT: Name: (0)
12 ; CHECK-NEXT: Value: 0x0
14 ; CHECK-NEXT: Binding: Local (0x0)
15 ; CHECK-NEXT: Type: None (0x0)
16 ; CHECK-NEXT: Other: 0
17 ; CHECK-NEXT: Section: Undefined (0x0)
19 ; CHECK-NEXT: Symbol {
20 ; CHECK-NEXT: Name: bar
21 ; CHECK-NEXT: Value: 0x201010
23 ; CHECK-NEXT: Binding: Local (0x0)
24 ; CHECK-NEXT: Type: Function (0x2)
25 ; CHECK-NEXT: Other [ (0x2)
26 ; CHECK-NEXT: STV_HIDDEN (0x2)
28 ; CHECK-NEXT: Section: .text (0x2)
30 ; CHECK-NEXT: Symbol {
31 ; CHECK-NEXT: Name: foo
32 ; CHECK-NEXT: Value: 0x201000
34 ; CHECK-NEXT: Binding: Global (0x1)
35 ; CHECK-NEXT: Type: Function (0x2)
36 ; CHECK-NEXT: Other: 0
37 ; CHECK-NEXT: Section: .text (0x2)
40 ; CHECK-NEXT: DynamicSymbols [
43 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
44 target triple = "x86_64-unknown-linux-gnu"