1# REQUIRES: x86 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 6 7# CHECK: DynamicSymbols [ 8# CHECK-NEXT: Symbol { 9# CHECK-NEXT: Name: 10# CHECK-NEXT: Value: 0x0 11# CHECK-NEXT: Size: 0 12# CHECK-NEXT: Binding: Local (0x0) 13# CHECK-NEXT: Type: None (0x0) 14# CHECK-NEXT: Other: 0 15# CHECK-NEXT: Section: Undefined (0x0) 16# CHECK-NEXT: } 17# CHECK-NEXT: Symbol { 18# CHECK-NEXT: Name: bar 19# CHECK-NEXT: Value: 0x0 20# CHECK-NEXT: Size: 0 21# CHECK-NEXT: Binding: Weak (0x2) 22# CHECK-NEXT: Type: None (0x0) 23# CHECK-NEXT: Other: 0 24# CHECK-NEXT: Section: Undefined (0x0) 25# CHECK-NEXT: } 26# CHECK-NEXT: Symbol { 27# CHECK-NEXT: Name: foo 28# CHECK-NEXT: Value: 0x0 29# CHECK-NEXT: Size: 0 30# CHECK-NEXT: Binding: Global (0x1) 31# CHECK-NEXT: Type: None (0x0) 32# CHECK-NEXT: Other: 0 33# CHECK-NEXT: Section: Undefined (0x0) 34# CHECK-NEXT: } 35# CHECK-NEXT: ] 36 37.global foo 38.weak bar 39.data 40 .dc.a foo 41 .dc.a bar 42