llvm/llvm/test/ObjectYAML/ELF/llvm-section-types.yaml

# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj --sections %t | FileCheck -check-prefix=OBJ %s
# RUN: obj2yaml %t | FileCheck -check-prefix=YAML %s

--- !ELF
FileHeader:
  Class:           ELFCLASS32
  Data:            ELFDATA2LSB
  Type:            ET_REL
Sections:
  - Name:            .llvm.offloading
    Type:            SHT_LLVM_OFFLOADING
    Flags:           [ SHF_EXCLUDE ]
  - Name:            .llvm.lto
    Type:            SHT_LLVM_LTO
    Flags:           [ SHF_EXCLUDE ]

#      OBJ: Sections [
#      OBJ:   Section {
#      OBJ:     Index: 1
# OBJ-NEXT:     Name: .llvm.offloading
# OBJ-NEXT:     Type: SHT_LLVM_OFFLOADING (0x6FFF4C0B)
# OBJ-NEXT:     Flags [ (0x80000000)
# OBJ-NEXT:       SHF_EXCLUDE (0x80000000)
# OBJ-NEXT:     ]
#      OBJ:   Section {
#      OBJ:     Index: 2
# OBJ-NEXT:     Name: .llvm.lto
# OBJ-NEXT:     Type: SHT_LLVM_LTO (0x6FFF4C0C)
# OBJ-NEXT:     Flags [ (0x80000000)
# OBJ-NEXT:       SHF_EXCLUDE (0x80000000)
# OBJ-NEXT:     ]


#      YAML: Sections:
# YAML-NEXT:   - Name:            .llvm.offloading
# YAML-NEXT:     Type:            SHT_LLVM_OFFLOADING
# YAML-NEXT:     Flags:           [ SHF_EXCLUDE ]
# YAML:        - Name:            .llvm.lto
# YAML-NEXT:     Type:            SHT_LLVM_LTO
# YAML-NEXT:     Flags:           [ SHF_EXCLUDE ]