llvm-project/lld/test/elf/Mips/e-flags-merge-1-64.test

31 lines
740 B
Plaintext

# Check that the linker shows an error when object
# file has unsupported ASE flags.
# RUN: yaml2obj -format=elf -docnum 1 %s > %t-mips16.o
# RUN: not lld -flavor gnu -target mips64el -e T -o %t.exe %t-mips16.o 2>&1 | \
# RUN: FileCheck -check-prefix=MIPS16 %s
# MIPS16: Unsupported extension: MIPS16
# mips16.o
---
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
Flags: [EF_MIPS_ARCH_64, EF_MIPS_ARCH_ASE_M16]
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 0x10
Size: 0x08
Symbols:
Global:
- Name: T
Section: .text
...