2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: echo "{ local: *; };" > %t.script
4 # RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
5 # RUN: llvm-readobj --dyn-syms %t.so | FileCheck %s
7 # CHECK: DynamicSymbols [
10 # CHECK-NEXT: Value: 0x0
12 # CHECK-NEXT: Binding: Local (0x0)
13 # CHECK-NEXT: Type: None (0x0)
14 # CHECK-NEXT: Other: 0
15 # CHECK-NEXT: Section: Undefined (0x0)
17 # CHECK-NEXT: Symbol {
18 # CHECK-NEXT: Name: bar
19 # CHECK-NEXT: Value: 0x0
21 # CHECK-NEXT: Binding: Weak (0x2)
22 # CHECK-NEXT: Type: None (0x0)
23 # CHECK-NEXT: Other: 0
24 # CHECK-NEXT: Section: Undefined (0x0)
26 # CHECK-NEXT: Symbol {
27 # CHECK-NEXT: Name: foo
28 # CHECK-NEXT: Value: 0x0
30 # CHECK-NEXT: Binding: Global (0x1)
31 # CHECK-NEXT: Type: None (0x0)
32 # CHECK-NEXT: Other: 0
33 # CHECK-NEXT: Section: Undefined (0x0)