You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
482 B

## 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