forked from OSchip/llvm-project
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
|
# Check that LLD does not allow to mix nan2008 and legacy MIPS object files.
|
||
|
|
||
|
# RUN: yaml2obj -format=elf -docnum 1 %s > %t-2008.o
|
||
|
# RUN: yaml2obj -format=elf -docnum 2 %s > %t-legacy.o
|
||
|
|
||
|
# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so \
|
||
|
# RUN: %t-2008.o %t-legacy.o 2>&1 | FileCheck %s
|
||
|
|
||
|
# CHECK: Linking -mnan=2008 and -mnan=legacy modules
|
||
|
|
||
|
# 2008.o
|
||
|
---
|
||
|
FileHeader:
|
||
|
Class: ELFCLASS32
|
||
|
Data: ELFDATA2LSB
|
||
|
Type: ET_REL
|
||
|
Machine: EM_MIPS
|
||
|
Flags: [EF_MIPS_ABI_O32, EF_MIPS_ARCH_32, EF_MIPS_NAN2008]
|
||
|
|
||
|
Sections:
|
||
|
- Name: .text
|
||
|
Type: SHT_PROGBITS
|
||
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
||
|
AddressAlign: 0x04
|
||
|
Size: 0x04
|
||
|
|
||
|
# legacy.o
|
||
|
---
|
||
|
FileHeader:
|
||
|
Class: ELFCLASS32
|
||
|
Data: ELFDATA2LSB
|
||
|
Type: ET_REL
|
||
|
Machine: EM_MIPS
|
||
|
Flags: [EF_MIPS_ABI_O32, EF_MIPS_ARCH_32]
|
||
|
|
||
|
Sections:
|
||
|
- Name: .text
|
||
|
Type: SHT_PROGBITS
|
||
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
||
|
AddressAlign: 0x04
|
||
|
Size: 0x04
|
||
|
...
|