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: 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
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 [
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.