hanchenye-llvm-project/lld/test/ELF/invalid/mips-multiple-reginfo.test

26 lines
732 B
Plaintext

# RUN: yaml2obj %s -o %t
# RUN: not ld.lld %t -o %tout 2>&1 | FileCheck %s
--- !ELF
FileHeader:
Class: ELFCLASS32
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
Flags: [EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32]
Sections:
- Name: .foo1
Type: SHT_MIPS_REGINFO
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 16
Content: "000000000000000000000000000000000000000000000000"
- Name: .foo2
Type: SHT_MIPS_REGINFO
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 16
Content: "000000000000000000000000000000000000000000000000"
# CHECK: multiple SHT_MIPS_REGINFO sections are not allowed