28 lines · plain
1# REQUIRES: x862# This test intentionally checks for fatal errors, and fatal errors aren't supported for testing when main is run twice.3# XFAIL: main-run-twice4 5# RUN: yaml2obj %s -o %t.o6# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s7# RUN: not ld.lld %t.o %t.o -o /dev/null 2>&1 | FileCheck %s8 9# CHECK: error: {{.*}}.o: unsupported SHT_GROUP format10 11--- !ELF12FileHeader:13 Class: ELFCLASS6414 Data: ELFDATA2LSB15 Type: ET_REL16 Machine: EM_X86_6417Sections:18 - Name: .group19 Type: SHT_GROUP20 Link: .symtab21 Info: foo22 Members:23 - SectionOrType: 0xFF24 - SectionOrType: 325Symbols:26 - Name: foo27 Binding: STB_GLOBAL28