llvm-for-llvmta/test/tools/yaml2obj/ELF/section-unnamed.yaml

23 lines
509 B
YAML
Raw Normal View History

2022-04-25 10:02:23 +02:00
## Check that "Name" defaults to an empty string.
# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj --sections %t | FileCheck %s
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_EXEC
Sections:
- Type: SHT_PROGBITS
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
# CHECK: Name: (
# CHECK-NEXT: Type: SHT_NULL
# CHECK: Name: (
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK: Name: .text
# CHECK-NEXT: Type: SHT_PROGBITS