summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/yaml2obj/ELF/section-unnamed.yaml
blob: ae5f2d29cf2e9f59792c18ed911f6b5ca03865e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## 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
  Machine:         EM_X86_64
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
OpenPOWER on IntegriCloud