brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 0b241fe Raw
46 lines · plain
1## This test checks that `--all --needed-libs` output is the same as the2## printing order in code. One common reason the output could become3## out-of-order is when more than one stream are printing at the same time.4## https://bugs.llvm.org/show_bug.cgi?id=421405 6# RUN: yaml2obj %s -o %t7# RUN: llvm-readelf --all --needed-libs %t | FileCheck %s8 9# CHECK: ELF Header10# CHECK:   Section header string table index11# CHECK: There are 5 section headers, starting at offset12# CHECK: Section Headers:13# CHECK: Key to Flags:14# CHECK: Elf file type is DYN (Shared object file)15# CHECK: Entry point 0x016# CHECK: There are 1 program headers, starting at offset 6417# CHECK: DYNAMIC18# CHECK:  Section to Segment mapping:19# CHECK:    None   .symtab .strtab .shstrtab20# CHECK: Dynamic section at offset21# CHECK:   0x0000000000000000 (NULL)               0x022# CHECK: NeededLibraries [23# CHECK: ]24# CHECK: There are no relocations in this file.25# CHECK: Symbol table '.symtab' contains 1 entries26# CHECK:      0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND27# CHECK: There are no section groups in this file.28 29 30--- !ELF31FileHeader:32  Class: ELFCLASS6433  Data:  ELFDATA2LSB34  Type:  ET_DYN35Sections:36  - Name:    .dynamic37    Type:    SHT_DYNAMIC38    Entries:39      - Tag: DT_NULL40        Value: 041Symbols: []42ProgramHeaders:43  - Type:     PT_DYNAMIC44    FirstSec: .dynamic45    LastSec:  .dynamic46