22 lines · plain
1# RUN: yaml2obj %s -o %t1.o2# RUN: not ld.lld %t1.o -o /dev/null 2>&1 | FileCheck %s3# CHECK: error: {{.*}}1.o: zero option descriptor size4 5## YAML has a description of ODK_NULL (Undefined) MIPS option,6## with a size of zero. We do not allow options with a zero size.7## Check we report it.8 9--- !ELF10FileHeader:11 Class: ELFCLASS6412 Data: ELFDATA2MSB13 Type: ET_REL14 Machine: EM_MIPS15 Flags: [ EF_MIPS_CPIC, EF_MIPS_ARCH_64 ]16Sections:17 - Name: .MIPS.options18 Type: SHT_MIPS_OPTIONS19 Flags: [ SHF_ALLOC, SHF_MIPS_NOSTRIP ]20 AddressAlign: 0x000000000000000821 Content: '0000000000000000'22