## Test the behaviour of --section-mapping when there are no program headers in an object.
# RUN: yaml2obj %s -o %t
# RUN: llvm-readelf --section-mapping %t | FileCheck %s --strict-whitespace --match-full-lines
# CHECK: Section to Segment mapping:
# CHECK-NEXT: Segment Sections...
# CHECK-NEXT: None .foo .strtab .shstrtab
# CHECK-NOT:{{.}}
--- !ELF
FileHeader:
Class: ELFCLASS32
Data: ELFDATA2LSB
Type: ET_DYN
Sections:
- Name: .foo
Type: SHT_PROGBITS