1 RUN: llvm-readobj -s -t -dt -dynamic-table -needed-libs \
2 RUN: %p/Inputs/shared-object-test.elf-i386 \
3 RUN: | FileCheck %s -check-prefix ELF
4 RUN: llvm-readobj -s -t -dt -dynamic-table -needed-libs \
5 RUN: %p/Inputs/shared-object-test.elf-i386 \
6 RUN: | FileCheck %s -check-prefix ELF32
8 RUN: llvm-readobj -s -t -dt -dynamic-table -needed-libs \
9 RUN: %p/Inputs/shared-object-test.elf-x86-64 \
10 RUN: | FileCheck %s -check-prefix ELF
11 RUN: llvm-readobj -s -t -dt -dynamic-table -needed-libs \
12 RUN: %p/Inputs/shared-object-test.elf-x86-64 \
13 RUN: | FileCheck %s -check-prefix ELF64
15 ELF64: Format: ELF64-x86-64
17 ELF64: AddressSize: 64bit
18 ELF64: LoadName: libfoo.so
20 ELF32: Format: ELF32-i386
22 ELF32: AddressSize: 32bit
23 ELF32: LoadName: libfoo.so
55 ELF: Type: SHT_PROGBITS
63 ELF: Type: SHT_PROGBITS
70 ELF: Type: SHT_PROGBITS
79 ELF: Type: SHT_DYNAMIC
87 ELF: Type: SHT_PROGBITS
95 ELF: Type: SHT_PROGBITS
103 ELF: Type: SHT_NOBITS
111 ELF: Type: SHT_STRTAB
117 ELF: Type: SHT_SYMTAB
123 ELF: Type: SHT_STRTAB
140 ELF: Section: .dynsym
146 ELF: Section: .dynstr
158 ELF: Section: .eh_frame
170 ELF: Section: .dynamic
176 ELF: Section: .got.plt
194 ELF: Section: Absolute (0xFFF1)
197 ELF: Name: local_func
203 ELF: Name: _GLOBAL_OFFSET_TABLE_
206 ELF: Section: Absolute (0xFFF1)
212 ELF: Section: Absolute (0xFFF1)
215 ELF: Name: common_sym
227 ELF: Name: defined_sym
233 ELF: Name: __bss_start
236 ELF: Section: Absolute (0xFFF1)
242 ELF: Section: Absolute (0xFFF1)
245 ELF: Name: global_func
254 ELF: Section: Absolute (0xFFF1)
258 ELF: DynamicSymbols [
260 ELF: Name: common_sym
272 ELF: Name: defined_sym
278 ELF: Name: __bss_start
281 ELF: Section: Absolute (0xFFF1)
287 ELF: Section: Absolute (0xFFF1)
290 ELF: Name: global_func
299 ELF: Section: Absolute (0xFFF1)
303 ELF32: DynamicSection [ (9 entries)
304 ELF32: Tag Type Name/Value
305 ELF32: 0x00000001 NEEDED Shared library: [libc.so.6]
306 ELF32: 0x00000001 NEEDED Shared library: [libm.so.6]
307 ELF32: 0x0000000E SONAME Library soname: [libfoo.so]
308 ELF32: 0x00000004 HASH {{[0-9a-f]+}}
309 ELF32: 0x00000005 STRTAB {{[0-9a-f]+}}
310 ELF32: 0x00000006 SYMTAB {{[0-9a-f]+}}
311 ELF32: 0x0000000A STRSZ {{[0-9]+}} (bytes)
312 ELF32: 0x0000000B SYMENT {{[0-9]+}} (bytes)
313 ELF32: 0x00000000 NULL 0x0
316 ELF64: DynamicSection [ (9 entries)
317 ELF64: Tag Type Name/Value
318 ELF64: 0x0000000000000001 NEEDED Shared library: [libc.so.6]
319 ELF64: 0x0000000000000001 NEEDED Shared library: [libm.so.6]
320 ELF64: 0x000000000000000E SONAME Library soname: [libfoo.so]
321 ELF64: 0x0000000000000004 HASH {{[0-9a-f]+}}
322 ELF64: 0x0000000000000005 STRTAB {{[0-9a-f]+}}
323 ELF64: 0x0000000000000006 SYMTAB {{[0-9a-f]+}}
324 ELF64: 0x000000000000000A STRSZ {{[0-9]+}} (bytes)
325 ELF64: 0x000000000000000B SYMENT {{[0-9]+}} (bytes)
326 ELF64: 0x0000000000000000 NULL 0x0
330 ELF: NeededLibraries [