18 lines · plain
1## Test the behaviour of --section-mapping when there are no program headers in an object.2# RUN: yaml2obj %s -o %t3# RUN: llvm-readelf --section-mapping %t | FileCheck %s --strict-whitespace --match-full-lines4 5# CHECK: Section to Segment mapping:6# CHECK-NEXT: Segment Sections...7# CHECK-NEXT: None .foo .strtab .shstrtab 8# CHECK-NOT:{{.}}9 10--- !ELF11FileHeader:12 Class: ELFCLASS3213 Data: ELFDATA2LSB14 Type: ET_DYN15Sections:16 - Name: .foo17 Type: SHT_PROGBITS18