1 # RUN: llvm-objcopy %p/Inputs/dynsym.so %t
2 # RUN: llvm-readobj --dyn-symbols %t | FileCheck %s
3 # RUN: llvm-readobj --sections %t | FileCheck --check-prefix=LINK %s
6 #LINK-NEXT: Type: SHT_DYNSYM
16 #LINK-NEXT: Name: .dynstr
18 #CHECK: DynamicSymbols [
20 #CHECK-NEXT: Name: (0)
21 #CHECK-NEXT: Value: 0x0
23 #CHECK-NEXT: Binding: Local
24 #CHECK-NEXT: Type: None (0x0)
26 #CHECK-NEXT: Section: Undefined (0x0)
29 #CHECK-NEXT: Name: bang (1)
30 #CHECK-NEXT: Value: 0x4000
32 #CHECK-NEXT: Binding: Global (0x1)
33 #CHECK-NEXT: Type: Object (0x1)
35 #CHECK-NEXT: Section: .bss (0x7)
38 #CHECK-NEXT: Name: bar (6)
39 #CHECK-NEXT: Value: 0x1001
41 #CHECK-NEXT: Binding: Global (0x1)
42 #CHECK-NEXT: Type: Function (0x2)
44 #CHECK-NEXT: Section: .text (0x4)
47 #CHECK-NEXT: Name: baz (10)
48 #CHECK-NEXT: Value: 0x2000
50 #CHECK-NEXT: Binding: Global (0x1)
51 #CHECK-NEXT: Type: Object (0x1)
53 #CHECK-NEXT: Section: .data (0x5)
56 #CHECK-NEXT: Name: foo (14)
57 #CHECK-NEXT: Value: 0x1000
59 #CHECK-NEXT: Binding: Global (0x1)
60 #CHECK-NEXT: Type: Function (0x2)
62 #CHECK-NEXT: Section: .text (0x4)