forked from OSchip/llvm-project
57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
# Check that the linker shows an error when object file has missed
|
|
# or unsupported ABI and ARCH flags or unsupported ASE flags.
|
|
|
|
# RUN: yaml2obj -format=elf -docnum 1 %s > %t-no-abi.o
|
|
# RUN: not lld -flavor old-gnu -target mipsel -e T -o %t.exe %t-no-abi.o 2>&1 | \
|
|
# RUN: FileCheck -check-prefix=INVALID-ABI %s
|
|
|
|
# RUN: yaml2obj -format=elf -docnum 2 %s > %t-mips16.o
|
|
# RUN: not lld -flavor old-gnu -target mipsel -e T -o %t.exe %t-mips16.o 2>&1 | \
|
|
# RUN: FileCheck -check-prefix=MIPS16 %s
|
|
|
|
# INVALID-ABI: Unsupported ABI
|
|
# MIPS16: Unsupported extension: MIPS16
|
|
|
|
# no-abi.o
|
|
---
|
|
FileHeader:
|
|
Class: ELFCLASS32
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_MIPS
|
|
Flags: []
|
|
|
|
Sections:
|
|
- Name: .text
|
|
Type: SHT_PROGBITS
|
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
AddressAlign: 0x04
|
|
Size: 0x04
|
|
|
|
Symbols:
|
|
Global:
|
|
- Name: T
|
|
Section: .text
|
|
|
|
# mips16.o
|
|
---
|
|
FileHeader:
|
|
Class: ELFCLASS32
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_MIPS
|
|
Flags: [EF_MIPS_ABI_O32, EF_MIPS_ARCH_32, EF_MIPS_ARCH_ASE_M16]
|
|
|
|
Sections:
|
|
- Name: .text
|
|
Type: SHT_PROGBITS
|
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
AddressAlign: 0x04
|
|
Size: 0x04
|
|
|
|
Symbols:
|
|
Global:
|
|
- Name: T
|
|
Section: .text
|
|
...
|