1## This test checks that `--all --needed-libs` output is the same as the
2## printing order in code. One common reason the output could become
3## out-of-order is when more than one stream are printing at the same time.
4## https://bugs.llvm.org/show_bug.cgi?id=42140
5
6# RUN: yaml2obj %s -o %t
7# RUN: llvm-readelf --all --needed-libs %t | FileCheck %s
8
9# CHECK: ELF Header
10# CHECK:   Section header string table index
11# CHECK: There are 5 section headers, starting at offset
12# CHECK: Section Headers:
13# CHECK: Key to Flags:
14# CHECK: Elf file type is DYN (Shared object file)
15# CHECK: Entry point 0x0
16# CHECK: There are 1 program headers, starting at offset 64
17# CHECK: DYNAMIC
18# CHECK:  Section to Segment mapping:
19# CHECK:    None   .symtab .strtab .shstrtab
20# CHECK: Dynamic section at offset
21# CHECK:   0x0000000000000000 (NULL)               0x0
22# CHECK: NeededLibraries [
23# CHECK: ]
24# CHECK: There are no relocations in this file.
25# CHECK: Symbol table '.symtab' contains 1 entries
26# CHECK:      0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND
27# CHECK: There are no section groups in this file.
28
29
30--- !ELF
31FileHeader:
32  Class: ELFCLASS64
33  Data:  ELFDATA2LSB
34  Type:  ET_DYN
35Sections:
36  - Name:    .dynamic
37    Type:    SHT_DYNAMIC
38    Entries:
39      - Tag: DT_NULL
40        Value: 0
41Symbols: []
42ProgramHeaders:
43  - Type:     PT_DYNAMIC
44    FirstSec: .dynamic
45    LastSec:  .dynamic
46