brintos

brintos / llvm-project-archived public Read only

0
0
Text · 519 B · 71b9208 Raw
20 lines · yaml
1## Check we report an error when SHT_GROUP references an unknown section in its member list.2 3# RUN: not yaml2obj %s 2>&1 | FileCheck %s4 5# CHECK: error: unknown section referenced: '.foo' by YAML section '.group'6# CHECK: error: unknown section referenced: '.bar' by YAML section '.group'7 8--- !ELF9FileHeader:10  Class: ELFCLASS6411  Data:  ELFDATA2LSB12  Type:  ET_REL13Sections:14  - Name: .group15    Type: SHT_GROUP16    Members:17      - SectionOrType: GRP_COMDAT18      - SectionOrType: .foo19      - SectionOrType: .bar20