forked from OSchip/llvm-project
110 lines
2.5 KiB
Plaintext
110 lines
2.5 KiB
Plaintext
# RUN: llvm-readobj --sections \
|
|
# RUN: %p/Inputs/shared-object-test.elf-i386 | FileCheck %s
|
|
|
|
# RUN: llvm-readobj --sections \
|
|
# RUN: %p/Inputs/shared-object-test.elf-x86-64 | FileCheck %s
|
|
|
|
# CHECK: Sections [
|
|
# CHECK: Section {
|
|
# CHECK: Name: (0)
|
|
# CHECK: Type: SHT_NULL
|
|
# CHECK: Flags [ (0x0)
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .hash
|
|
# CHECK: Type: SHT_HASH
|
|
# CHECK: Flags [ (0x2)
|
|
# CHECK: SHF_ALLOC
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .dynsym
|
|
# CHECK: Type: SHT_DYNSYM
|
|
# CHECK: Flags [ (0x2)
|
|
# CHECK: SHF_ALLOC
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .dynstr
|
|
# CHECK: Type: SHT_STRTAB
|
|
# CHECK: Flags [ (0x2)
|
|
# CHECK: SHF_ALLOC
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .text
|
|
# CHECK: Type: SHT_PROGBITS
|
|
# CHECK: Flags [ (0x6)
|
|
# CHECK: SHF_ALLOC
|
|
# CHECK: SHF_EXECINSTR
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .eh_frame
|
|
# CHECK: Type: SHT_PROGBITS
|
|
# CHECK: Flags [ (0x2)
|
|
# CHECK: SHF_ALLOC
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .tdata
|
|
# CHECK: Type: SHT_PROGBITS
|
|
# CHECK: Flags [ (0x403)
|
|
# CHECK: SHF_ALLOC
|
|
# CHECK: SHF_TLS
|
|
# CHECK: SHF_WRITE
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .dynamic
|
|
# CHECK: Type: SHT_DYNAMIC
|
|
# CHECK: Flags [ (0x3)
|
|
# CHECK: SHF_ALLOC
|
|
# CHECK: SHF_WRITE
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .got.plt
|
|
# CHECK: Type: SHT_PROGBITS
|
|
# CHECK: Flags [ (0x3)
|
|
# CHECK: SHF_ALLOC
|
|
# CHECK: SHF_WRITE
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .data
|
|
# CHECK: Type: SHT_PROGBITS
|
|
# CHECK: Flags [ (0x3)
|
|
# CHECK: SHF_ALLOC
|
|
# CHECK: SHF_WRITE
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .bss
|
|
# CHECK: Type: SHT_NOBITS
|
|
# CHECK: Flags [ (0x3)
|
|
# CHECK: SHF_ALLOC
|
|
# CHECK: SHF_WRITE
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .shstrtab
|
|
# CHECK: Type: SHT_STRTAB
|
|
# CHECK: Flags [ (0x0)
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .symtab
|
|
# CHECK: Type: SHT_SYMTAB
|
|
# CHECK: Flags [ (0x0)
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Name: .strtab
|
|
# CHECK: Type: SHT_STRTAB
|
|
# CHECK: Flags [ (0x0)
|
|
# CHECK: ]
|
|
# CHECK: }
|
|
# CHECK: ]
|