2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
3 # RUN: ld.lld -pie %t -o %t.out
4 # RUN: llvm-readobj --symbols --dyn-syms %t.out | FileCheck %s
9 # CHECK-NEXT: Value: [[ADDR:.*]]
11 # CHECK-NEXT: Binding: Local
12 # CHECK-NEXT: Type: None
14 # CHECK-NEXT: STV_HIDDEN
16 # CHECK-NEXT: Section: .text
19 # CHECK: Name: internal
20 # CHECK-NEXT: Value: [[ADDR]]
22 # CHECK-NEXT: Binding: Local
23 # CHECK-NEXT: Type: None
25 # CHECK-NEXT: STV_INTERNAL
27 # CHECK-NEXT: Section: .text
30 # CHECK: Name: default
31 # CHECK-NEXT: Value: [[ADDR]]
33 # CHECK-NEXT: Binding: Global
34 # CHECK-NEXT: Type: None
35 # CHECK-NEXT: Other: 0
36 # CHECK-NEXT: Section: .text
39 # CHECK: Name: protected
40 # CHECK-NEXT: Value: [[ADDR]]
42 # CHECK-NEXT: Binding: Global
43 # CHECK-NEXT: Type: None
45 # CHECK-NEXT: STV_PROTECTED
47 # CHECK-NEXT: Section: .text
51 # CHECK: DynamicSymbols [
52 # CHECK-NEXT: Symbol {
54 # CHECK-NEXT: Value: 0x0
56 # CHECK-NEXT: Binding: Local
57 # CHECK-NEXT: Type: None
58 # CHECK-NEXT: Other: 0
59 # CHECK-NEXT: Section: Undefined