xref: /llvm-project/lld/test/ELF/invalid/comdat-broken.test (revision 754b94638e8935e1c1ed6121e0037fdae8b3c63c)
1# REQUIRES: x86
2# This test intentionally checks for fatal errors, and fatal errors aren't supported for testing when main is run twice.
3# XFAIL: main-run-twice
4
5# RUN: yaml2obj %s -o %t.o
6# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
7# RUN: not ld.lld %t.o %t.o -o /dev/null 2>&1 | FileCheck %s
8
9# CHECK: error: {{.*}}.o: unsupported SHT_GROUP format
10
11--- !ELF
12FileHeader:
13  Class:               ELFCLASS64
14  Data:                ELFDATA2LSB
15  Type:                ET_REL
16  Machine:             EM_X86_64
17Sections:
18  - Name:              .group
19    Type:              SHT_GROUP
20    Link:              .symtab
21    Info:              foo
22    Members:
23      - SectionOrType: 0xFF
24      - SectionOrType: 3
25Symbols:
26  - Name:              foo
27    Binding:           STB_GLOBAL
28