summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-readobj/ELF/gnu-section-mapping-no-phdrs.test
blob: fb508529fe5bbcb504f562bbe10b76a84ae48ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## Test the behaviour of --section-mapping when there are no section 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
  Machine: EM_386
Sections:
  - Name: .foo
    Type: SHT_PROGBITS
OpenPOWER on IntegriCloud