llvm-for-llvmta/test/tools/llvm-readobj/ELF/no-phdrs.test

24 lines
698 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
# Show that llvm-readobj can handle no program headers when --program-headers
# is requested, both for LLVM and GNU output.
# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj %t --program-headers | FileCheck %s --check-prefix=LLVM
# RUN: llvm-readelf %t --program-headers | FileCheck %s --check-prefix=GNU
# LLVM: ProgramHeaders [
# LLVM-NEXT: ]
# GNU: There are 0 program headers
# GNU: Program Headers:
# GNU-NEXT: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
# GNU-EMPTY:
# GNU-NEXT: Section to Segment mapping:
# GNU-NEXT: Segment Sections...
# GNU-NEXT: None .strtab .shstrtab
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL