brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.4 KiB · f3de10f Raw
113 lines · plain
1# RUN: yaml2obj %s -o %t.o2# RUN: llvm-readobj -a %t.o | FileCheck %s --check-prefix LLVM-ALL3# RUN: llvm-readobj --all %t.o | FileCheck %s --check-prefix LLVM-ALL4 5# LLVM-ALL: Format: elf32-i3866# LLVM-ALL: Arch: i3867# LLVM-ALL: AddressSize: 32bit8# LLVM-ALL: LoadName:9# LLVM-ALL: ElfHeader {10# LLVM-ALL: Sections [11# LLVM-ALL: ProgramHeaders [12# LLVM-ALL: Relocations [13# LLVM-ALL: EHFrameHeader {14# LLVM-ALL: .eh_frame section at offset 0x1128 address 0x0:15# LLVM-ALL: Symbols [16# LLVM-ALL: VersionSymbols [17# LLVM-ALL: VersionDefinitions [18# LLVM-ALL: VersionRequirements [19# LLVM-ALL: Addrsig [20# LLVM-ALL: Notes [21# LLVM-ALL: StackSizes [22 23# RUN: llvm-readelf -a %t.o | FileCheck %s --check-prefix GNU-ALL24# RUN: llvm-readelf --all %t.o | FileCheck %s --check-prefix GNU-ALL25 26# GNU-ALL: ELF Header:27# GNU-ALL: There are {{.*}} section headers, starting at offset {{.*}}:28# GNU-ALL: Program Headers:29# GNU-ALL: Dynamic section at offset {{.*}} contains {{.*}} entries:30# GNU-ALL: Relocation section '.rela.data' at offset {{.*}} contains {{.*}} entries:31# GNU-ALL: EHFrameHeader {32# GNU-ALL: .eh_frame section at offset {{.*}} address 0x0:33# GNU-ALL: Symbol table '.symtab' contains {{.*}} entries:34# GNU-ALL: Version symbols section '.gnu.version' contains {{.*}} entries:35# GNU-ALL: Version definition section '.gnu.version_d' contains {{.*}} entries:36# GNU-ALL: Version needs section '.gnu.version_r' contains {{.*}} entries:37# GNU-ALL: There are no section groups in this file.38# GNU-ALL: Histogram for bucket list length (total of 1 buckets)39# GNU-ALL: Displaying notes found40 41--- !ELF42FileHeader:43  Class:   ELFCLASS3244  Data:    ELFDATA2LSB45  Type:    ET_REL46  Machine: EM_38647Sections:48  - Name: .data49    Type: SHT_PROGBITS50  - Name: .rela.data51    Type: SHT_REL52    Relocations:53  - Name:    .gnu.version54    Type:    SHT_GNU_versym55    Entries: [ 0 ]56  - Name:    .gnu.version_d57    Type:    SHT_GNU_verdef58    Entries: []59  - Name: .gnu.version_r60    Type: SHT_GNU_verneed61    Dependencies:62      - Version: 163        File:    verneed1.so.064        Entries: []65  - Name:         .dynamic66    Type:         SHT_DYNAMIC67    Address:      0x100068    AddressAlign: 0x100069    Entries:70      - Tag:   DT_HASH71        Value: 0x110072      - Tag:   DT_NULL73        Value: 074  - Name:         .hash75    Type:         SHT_HASH76    Link:         077    Bucket:       [ 1 ]78    Chain:        [ 0, 0 ]79    Address:      0x110080    AddressAlign: 0x10081  - Name:    .eh_frame_hdr82    Type:    SHT_PROGBITS83## An arbitrary linker-generated valid content.84    Content: 011b033b140000000100000000f0ffff3000000085  - Name:         .eh_frame86    Type:         SHT_PROGBITS87    AddressAlign: 888## An arbitrary linker-generated valid content.89    Content:      1400000000000000017a5200017810011b0c070890010000100000001c000000c8efffff010000000000000090  - Name:    .note.gnu.build-id91    Type:    SHT_NOTE92    Flags:   [ SHF_ALLOC ]93    Address: 0x150094## An arbitrary linker-generated valid content.95    Content: 040000001000000003000000474E55004FCB712AA6387724A9F465A32CD8C14B96ProgramHeaders:97  - Type:     PT_LOAD98    VAddr:    0x100099    FirstSec: .dynamic100    LastSec:  .hash101  - Type:     PT_DYNAMIC102    FirstSec: .dynamic103    LastSec:  .dynamic104  - Type:     PT_GNU_EH_FRAME105    FirstSec: .eh_frame_hdr106    LastSec:  .eh_frame_hdr107  - Type:     PT_NOTE108    FirstSec: .note.gnu.build-id109    LastSec:  .note.gnu.build-id110Symbols: []111DynamicSymbols:112  - Name: foo113