xref: /llvm-project/llvm/test/tools/llvm-readobj/ELF/gnu-section-mapping-no-phdrs.test (revision a6436b0b3a7fd9f13d7a059a6a78544a7e0b702f)
1## Test the behaviour of --section-mapping when there are no program headers in an object.
2# RUN: yaml2obj %s -o %t
3# RUN: llvm-readelf --section-mapping %t | FileCheck %s --strict-whitespace --match-full-lines
4
5#      CHECK: Section to Segment mapping:
6# CHECK-NEXT:  Segment Sections...
7# CHECK-NEXT:   None   .foo .strtab .shstrtab
8#  CHECK-NOT:{{.}}
9
10--- !ELF
11FileHeader:
12  Class: ELFCLASS32
13  Data:  ELFDATA2LSB
14  Type:  ET_DYN
15Sections:
16  - Name: .foo
17    Type: SHT_PROGBITS
18