1## Check we are able to produce an SHT_GROUP section with a custom Info value (12345). 2 3# RUN: yaml2obj %s -o %t1 4# RUN: llvm-readobj --sections %t1 | FileCheck %s 5 6--- !ELF 7FileHeader: 8 Class: ELFCLASS64 9 Data: ELFDATA2LSB 10 Type: ET_REL 11Sections: 12 - Name: .group 13 Type: SHT_GROUP 14 Info: 12345 15 Members: 16 - SectionOrType: GRP_COMDAT 17 18# CHECK: Name: .group 19# CHECK-NEXT: Type: SHT_GROUP 20# CHECK-NEXT: Flags [ 21# CHECK-NEXT: ] 22# CHECK-NEXT: Address: 23# CHECK-NEXT: Offset: 24# CHECK-NEXT: Size: 25# CHECK-NEXT: Link: 26# CHECK-NEXT: Info: 12345 27 28## Check we report multiple errors when multiple unknown symbols are referenced by SHT_GROUP sections. 29 30# RUN: not yaml2obj --docnum=2 %s 2>&1 | FileCheck %s --check-prefix=ERR 31 32# ERR: error: unknown symbol referenced: 'foo' by YAML section '.group1' 33# ERR: error: unknown symbol referenced: 'bar' by YAML section '.group2' 34 35--- !ELF 36FileHeader: 37 Class: ELFCLASS64 38 Data: ELFDATA2LSB 39 Type: ET_REL 40Sections: 41 - Name: .group1 42 Type: SHT_GROUP 43 Info: foo 44 Members: 45 - SectionOrType: GRP_COMDAT 46 - Name: .group2 47 Type: SHT_GROUP 48 Info: bar 49 Members: 50 - SectionOrType: GRP_COMDAT 51