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
6 # RUN: yaml2obj %s -o %t
7 # RUN: llvm-readelf --all --needed-libs %t | FileCheck %s
10 # CHECK: Section header string table index
11 # CHECK: There are 5 section headers, starting at offset
12 # CHECK: Section Headers:
13 # CHECK: O (extra OS processing required) o (OS specific), p (processor specific)
14 # CHECK: There are no relocations in this file.
15 # CHECK: Symbol table '.symtab' contains 1 entries
16 # CHECK: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
17 # CHECK: Dynamic section at offset
18 # CHECK: 0x0000000000000000 (NULL) 0x0
19 # CHECK: NeededLibraries [
21 # CHECK: Elf file type is DYN (Shared object file)
22 # CHECK: Entry point 0x0
23 # CHECK: There are 1 program headers, starting at offset 64
25 # CHECK: Section to Segment mapping:
26 # CHECK: None .symtab .strtab .shstrtab
27 # CHECK: There are no section groups in this file.