]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/elf/Mips/e-flags-merge-5.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / elf / Mips / e-flags-merge-5.test
1 # Check that LLD does not allow to mix 32 and 64-bit MIPS object files.
2
3 # RUN: yaml2obj -format=elf -docnum 1 %s > %t-32.o
4 # RUN: yaml2obj -format=elf -docnum 2 %s > %t-64.o
5
6 # RUN: not lld -flavor gnu -target mipsel -shared -o %t.so \
7 # RUN:         %t-32.o %t-64.o 2>&1 | FileCheck %s
8
9 # CHECK: Bitness is incompatible with that of the selected target
10
11 # 32.o
12 ---
13 FileHeader:
14   Class:           ELFCLASS32
15   Data:            ELFDATA2LSB
16   Type:            ET_REL
17   Machine:         EM_MIPS
18   Flags:           [EF_MIPS_ABI_O32, EF_MIPS_ARCH_32]
19
20 Sections:
21   - Name:          .text
22     Type:          SHT_PROGBITS
23     Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
24     AddressAlign:  0x04
25     Size:          0x04
26
27 # 64.o
28 ---
29 FileHeader:
30   Class:           ELFCLASS64
31   Data:            ELFDATA2LSB
32   Type:            ET_REL
33   Machine:         EM_MIPS
34   Flags:           [EF_MIPS_ARCH_64]
35
36 Sections:
37   - Name:          .text
38     Type:          SHT_PROGBITS
39     Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
40     AddressAlign:  0x04
41     Size:          0x04
42 ...