1 # RUN: llvm-readobj --sections --symbols --dyn-syms --needed-libs \
2 # RUN: %p/Inputs/shared-object-test.elf-i386 | FileCheck %s
4 # RUN: llvm-readobj --sections --symbols --dyn-syms --needed-libs \
5 # RUN: %p/Inputs/shared-object-test.elf-x86-64 | FileCheck %s
10 # CHECK: Type: SHT_NULL
11 # CHECK: Flags [ (0x0)
16 # CHECK: Type: SHT_HASH
17 # CHECK: Flags [ (0x2)
22 # CHECK: Name: .dynsym
23 # CHECK: Type: SHT_DYNSYM
24 # CHECK: Flags [ (0x2)
29 # CHECK: Name: .dynstr
30 # CHECK: Type: SHT_STRTAB
31 # CHECK: Flags [ (0x2)
37 # CHECK: Type: SHT_PROGBITS
38 # CHECK: Flags [ (0x6)
40 # CHECK: SHF_EXECINSTR
44 # CHECK: Name: .eh_frame
45 # CHECK: Type: SHT_PROGBITS
46 # CHECK: Flags [ (0x2)
52 # CHECK: Type: SHT_PROGBITS
53 # CHECK: Flags [ (0x403)
60 # CHECK: Name: .dynamic
61 # CHECK: Type: SHT_DYNAMIC
62 # CHECK: Flags [ (0x3)
68 # CHECK: Name: .got.plt
69 # CHECK: Type: SHT_PROGBITS
70 # CHECK: Flags [ (0x3)
77 # CHECK: Type: SHT_PROGBITS
78 # CHECK: Flags [ (0x3)
85 # CHECK: Type: SHT_NOBITS
86 # CHECK: Flags [ (0x3)
92 # CHECK: Name: .shstrtab
93 # CHECK: Type: SHT_STRTAB
94 # CHECK: Flags [ (0x0)
98 # CHECK: Name: .symtab
99 # CHECK: Type: SHT_SYMTAB
100 # CHECK: Flags [ (0x0)
104 # CHECK: Name: .strtab
105 # CHECK: Type: SHT_STRTAB
106 # CHECK: Flags [ (0x0)
113 # CHECK: Name: .hash (0)
114 # CHECK: Binding: Local
115 # CHECK: Type: Section
116 # CHECK: Section: .hash
119 # CHECK: Name: .dynsym (0)
120 # CHECK: Binding: Local
121 # CHECK: Type: Section
122 # CHECK: Section: .dynsym
125 # CHECK: Name: .dynstr (0)
126 # CHECK: Binding: Local
127 # CHECK: Type: Section
128 # CHECK: Section: .dynstr
131 # CHECK: Name: .text (0)
132 # CHECK: Binding: Local
133 # CHECK: Type: Section
134 # CHECK: Section: .text
137 # CHECK: Name: .eh_frame (0)
138 # CHECK: Binding: Local
139 # CHECK: Type: Section
140 # CHECK: Section: .eh_frame
143 # CHECK: Name: .tdata (0)
144 # CHECK: Binding: Local
145 # CHECK: Type: Section
146 # CHECK: Section: .tdata
149 # CHECK: Name: .dynamic (0)
150 # CHECK: Binding: Local
151 # CHECK: Type: Section
152 # CHECK: Section: .dynamic
155 # CHECK: Name: .got.plt (0)
156 # CHECK: Binding: Local
157 # CHECK: Type: Section
158 # CHECK: Section: .got.plt
161 # CHECK: Name: .data (0)
162 # CHECK: Binding: Local
163 # CHECK: Type: Section
164 # CHECK: Section: .data
167 # CHECK: Name: .bss (0)
168 # CHECK: Binding: Local
169 # CHECK: Type: Section
170 # CHECK: Section: .bss
173 # CHECK: Name: shared.ll
174 # CHECK: Binding: Local
176 # CHECK: Section: Absolute (0xFFF1)
179 # CHECK: Name: local_func
180 # CHECK: Binding: Local
181 # CHECK: Type: Function
182 # CHECK: Section: .text
185 # CHECK: Name: _GLOBAL_OFFSET_TABLE_
186 # CHECK: Binding: Local
187 # CHECK: Type: Object
188 # CHECK: Section: Absolute (0xFFF1)
191 # CHECK: Name: _DYNAMIC
192 # CHECK: Binding: Local
193 # CHECK: Type: Object
194 # CHECK: Section: Absolute (0xFFF1)
197 # CHECK: Name: common_sym
198 # CHECK: Binding: Global
199 # CHECK: Type: Object
200 # CHECK: Section: .bss
203 # CHECK: Name: tls_sym
204 # CHECK: Binding: Global
206 # CHECK: Section: .tdata
209 # CHECK: Name: defined_sym
210 # CHECK: Binding: Global
211 # CHECK: Type: Object
212 # CHECK: Section: .data
215 # CHECK: Name: __bss_start
216 # CHECK: Binding: Global
218 # CHECK: Section: Absolute (0xFFF1)
222 # CHECK: Binding: Global
224 # CHECK: Section: Absolute (0xFFF1)
227 # CHECK: Name: global_func
228 # CHECK: Binding: Global
229 # CHECK: Type: Function
230 # CHECK: Section: .text
233 # CHECK: Name: _edata
234 # CHECK: Binding: Global
236 # CHECK: Section: Absolute (0xFFF1)
240 # CHECK: DynamicSymbols [
242 # CHECK: Name: common_sym
243 # CHECK: Binding: Global
244 # CHECK: Type: Object
245 # CHECK: Section: .bss
248 # CHECK: Name: tls_sym
249 # CHECK: Binding: Global
251 # CHECK: Section: .tdata
254 # CHECK: Name: defined_sym
255 # CHECK: Binding: Global
256 # CHECK: Type: Object
257 # CHECK: Section: .data
260 # CHECK: Name: __bss_start
261 # CHECK: Binding: Global
263 # CHECK: Section: Absolute (0xFFF1)
267 # CHECK: Binding: Global
269 # CHECK: Section: Absolute (0xFFF1)
272 # CHECK: Name: global_func
273 # CHECK: Binding: Global
274 # CHECK: Type: Function
275 # CHECK: Section: .text
278 # CHECK: Name: _edata
279 # CHECK: Binding: Global
281 # CHECK: Section: Absolute (0xFFF1)
285 # CHECK: NeededLibraries [
286 # CHECK-NEXT: libc.so.6
287 # CHECK-NEXT: libm.so.6