2012-03-01 01:36:50 +00:00
|
|
|
RUN: llvm-readobj %p/Inputs/shared-object-test.elf-i386 \
|
|
|
|
RUN: | FileCheck %s -check-prefix ELF
|
2012-03-01 22:19:54 +00:00
|
|
|
RUN: llvm-readobj %p/Inputs/shared-object-test.elf-i386 \
|
|
|
|
RUN: | FileCheck %s -check-prefix ELF32
|
|
|
|
|
2012-03-01 01:36:50 +00:00
|
|
|
RUN: llvm-readobj %p/Inputs/shared-object-test.elf-x86-64 \
|
|
|
|
RUN: | FileCheck %s -check-prefix ELF
|
2012-03-01 22:19:54 +00:00
|
|
|
RUN: llvm-readobj %p/Inputs/shared-object-test.elf-x86-64 \
|
|
|
|
RUN: | FileCheck %s -check-prefix ELF64
|
|
|
|
|
|
|
|
ELF64:File Format : ELF64-x86-64
|
|
|
|
ELF64:Arch : x86_64
|
|
|
|
ELF64:Address Size: 64 bits
|
|
|
|
ELF64:Load Name : libfoo.so
|
|
|
|
|
|
|
|
ELF32:File Format : ELF32-i386
|
|
|
|
ELF32:Arch : i386
|
|
|
|
ELF32:Address Size: 32 bits
|
|
|
|
ELF32:Load Name : libfoo.so
|
2012-03-01 01:36:50 +00:00
|
|
|
|
|
|
|
ELF:Symbols:
|
2013-03-25 16:06:51 +00:00
|
|
|
ELF: Name Type Section Address Size FileOffset Flags
|
|
|
|
ELF: .dynsym DBG .dynsym {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} formatspecific
|
|
|
|
ELF: .dynstr DBG .dynstr {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} formatspecific
|
|
|
|
ELF: .text DBG .text {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} formatspecific
|
|
|
|
ELF: .eh_frame DBG .eh_frame {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} formatspecific
|
|
|
|
ELF: .tdata DBG .tdata {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} formatspecific
|
|
|
|
ELF: .dynamic DBG .dynamic {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} formatspecific
|
|
|
|
ELF: .got.plt DBG .got.plt {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} formatspecific
|
|
|
|
ELF: .data DBG .data {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} formatspecific
|
|
|
|
ELF: .bss DBG .bss {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} formatspecific
|
|
|
|
ELF: shared.ll FILE {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} absolute,formatspecific
|
|
|
|
ELF: local_func FUNC .text {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}}
|
|
|
|
ELF: _GLOBAL_OFFSET_TABLE_ DATA {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} absolute
|
|
|
|
ELF: _DYNAMIC DATA {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} absolute
|
|
|
|
ELF: common_sym DATA .bss {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global
|
|
|
|
ELF: tls_sym DATA .tdata {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global,threadlocal
|
|
|
|
ELF: defined_sym DATA .data {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global
|
|
|
|
ELF: __bss_start ? {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global,absolute
|
|
|
|
ELF: _end ? {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global,absolute
|
|
|
|
ELF: global_func FUNC .text {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global
|
|
|
|
ELF: _edata ? {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global,absolute
|
2012-03-01 01:36:50 +00:00
|
|
|
ELF: Total: 21
|
|
|
|
|
|
|
|
ELF:Dynamic Symbols:
|
2013-03-25 16:06:51 +00:00
|
|
|
ELF: Name Type Section Address Size FileOffset Flags
|
|
|
|
ELF: common_sym DATA .bss {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global
|
|
|
|
ELF: tls_sym DATA .tdata {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global,threadlocal
|
|
|
|
ELF: defined_sym DATA .data {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global
|
2012-03-01 01:36:50 +00:00
|
|
|
ELF: __bss_start ? {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global,absolute
|
|
|
|
ELF: _end ? {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global,absolute
|
2013-03-25 16:06:51 +00:00
|
|
|
ELF: global_func FUNC .text {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global
|
2012-03-01 01:36:50 +00:00
|
|
|
ELF: _edata ? {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} global,absolute
|
|
|
|
ELF: Total: {{[0-9a-f]+}}
|
|
|
|
|
2012-12-31 16:29:44 +00:00
|
|
|
ELF:Sections:
|
|
|
|
ELF: Name Address Size Align Flags
|
|
|
|
ELF: {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} rodata
|
|
|
|
ELF: .hash {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} required,rodata
|
|
|
|
ELF: .dynsym {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} required,rodata
|
|
|
|
ELF: .dynstr {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} required,rodata
|
|
|
|
ELF: .text {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} text,{{(data,)?}}required
|
|
|
|
ELF: .eh_frame {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} data,required,rodata
|
|
|
|
ELF: .tdata {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} data,required
|
|
|
|
ELF: .dynamic {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} required
|
|
|
|
ELF: .got.plt {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} data,required
|
|
|
|
ELF: .data {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} data,required
|
2012-12-31 18:20:51 +00:00
|
|
|
ELF: .bss {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} bss,required,virtual,zeroinit
|
2012-12-31 16:29:44 +00:00
|
|
|
ELF: .shstrtab {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} rodata
|
|
|
|
ELF: .symtab {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} rodata
|
|
|
|
ELF: .strtab {{[0-9a-f]+}} {{[0-9a-f]+}} {{[0-9a-f]+}} rodata
|
|
|
|
ELF: Total: 14
|
|
|
|
|
2013-02-20 02:37:12 +00:00
|
|
|
ELF:Dynamic section contains 9 entries
|
|
|
|
ELF: Tag Type Name/Value
|
|
|
|
ELF: 00000001 (NEEDED) Shared library: [libc.so.6]
|
|
|
|
ELF: 00000001 (NEEDED) Shared library: [libm.so.6]
|
|
|
|
ELF: 0000000e (SONAME) Library soname: [libfoo.so]
|
|
|
|
ELF: 00000004 (HASH) {{[0-9a-f]+}}
|
|
|
|
ELF: 00000005 (STRTAB) {{[0-9a-f]+}}
|
|
|
|
ELF: 00000006 (SYMTAB) {{[0-9a-f]+}}
|
|
|
|
ELF: 0000000a (STRSZ) {{[0-9]+}} (bytes)
|
|
|
|
ELF: 0000000b (SYMENT) {{[0-9]+}} (bytes)
|
|
|
|
ELF: 00000000 (NULL) 0x0
|
|
|
|
ELF: Total: 9
|
|
|
|
|
2012-03-01 01:36:50 +00:00
|
|
|
ELF:Libraries needed:
|
|
|
|
ELF: libc.so.6
|
|
|
|
ELF: libm.so.6
|
|
|
|
ELF: Total: 2
|
|
|
|
|
|
|
|
|