reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
## Check we report an error when SHT_GROUP references an unknown section in its member list.

# RUN: not yaml2obj %s 2>&1 | FileCheck %s

# CHECK: error: unknown section referenced: '.foo' by YAML section '.group'
# CHECK: error: unknown section referenced: '.bar' by YAML section '.group'

--- !ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_REL
  Machine: EM_X86_64
Sections:
  - Name: .group
    Type: SHT_GROUP
    Link: .symtab
    Info: 0
    Members:
      - SectionOrType: GRP_COMDAT
      - SectionOrType: .foo
      - SectionOrType: .bar