1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy %t %t2
3 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
14 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
16 AddressAlign: 0x0000000000000010
17 Content: "0000000000000000"
22 AddressAlign: 0x0000000000000010
23 Content: "0000000000000000"
48 Other: [ STV_INTERNAL ]
66 #CHECK-NEXT: Value: 0x0
68 #CHECK-NEXT: Binding: Local
69 #CHECK-NEXT: Type: None
71 #CHECK-NEXT: Section: Undefined
74 #CHECK-NEXT: Name: _start
75 #CHECK-NEXT: Value: 0x1000
77 #CHECK-NEXT: Binding: Global
78 #CHECK-NEXT: Type: Function
80 #CHECK-NEXT: Section: .text
83 #CHECK-NEXT: Name: bam
84 #CHECK-NEXT: Value: 0x1001
86 #CHECK-NEXT: Binding: Global
87 #CHECK-NEXT: Type: Function
89 #CHECK-NEXT: STV_HIDDEN
91 #CHECK-NEXT: Section: .text
94 #CHECK-NEXT: Name: foo
95 #CHECK-NEXT: Value: 0x1004
97 #CHECK-NEXT: Binding: Global
98 #CHECK-NEXT: Type: Function
100 #CHECK-NEXT: Section: .text
102 #CHECK-NEXT: Symbol {
103 #CHECK-NEXT: Name: faz
104 #CHECK-NEXT: Value: 0x2002
106 #CHECK-NEXT: Binding: Global
107 #CHECK-NEXT: Type: Object
109 #CHECK-NEXT: STV_INTERNAL
111 #CHECK-NEXT: Section: .data
113 #CHECK-NEXT: Symbol {
114 #CHECK-NEXT: Name: bar
115 #CHECK-NEXT: Value: 0x2000
117 #CHECK-NEXT: Binding: Global
118 #CHECK-NEXT: Type: Object
119 #CHECK-NEXT: Other: 0
120 #CHECK-NEXT: Section: .data
122 #CHECK-NEXT: Symbol {
123 #CHECK-NEXT: Name: baz
124 #CHECK-NEXT: Value: 0x2004
126 #CHECK-NEXT: Binding: Global
127 #CHECK-NEXT: Type: Object
128 #CHECK-NEXT: Other: 0
129 #CHECK-NEXT: Section: .data