blob: b4c0039bd198982f788ba46296d137fb4845be77 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Check that LLD shows an error and does not link files with mips64r2
# and mips64r6 instructions sets.
# RUN: yaml2obj -format=elf -docnum 1 %s > %t-64r2.o
# RUN: yaml2obj -format=elf -docnum 2 %s > %t-64r6.o
# RUN: not lld -flavor gnu -target mips64el -shared -o %t.so \
# RUN: %t-64r2.o %t-64r6.o 2>&1 | FileCheck %s
# CHECK: Linking modules with incompatible ISA
# 64r2.o
---
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
Flags: [EF_MIPS_ARCH_64R2]
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 0x04
Size: 0x04
# 64r6.o
---
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
Flags: [EF_MIPS_ARCH_64R6]
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 0x04
Size: 0x04
...
|