]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/elf/Mips/e-flags-merge-1.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / elf / Mips / e-flags-merge-1.test
1 # Check that the linker shows an error when object file has missed
2 # or unsupported ABI and ARCH flags or unsupported ASE flags.
3
4 # RUN: yaml2obj -format=elf -docnum 1 %s > %t-no-abi.o
5 # RUN: not lld -flavor gnu -target mipsel -e T -o %t.exe %t-no-abi.o 2>&1 | \
6 # RUN:   FileCheck -check-prefix=INVALID-ABI %s
7
8 # RUN: yaml2obj -format=elf -docnum 2 %s > %t-mips16.o
9 # RUN: not lld -flavor gnu -target mipsel -e T -o %t.exe %t-mips16.o 2>&1 | \
10 # RUN:   FileCheck -check-prefix=MIPS16 %s
11
12 # INVALID-ABI: Unsupported ABI
13 # MIPS16: Unsupported extension: MIPS16
14
15 # no-abi.o
16 ---
17 FileHeader:
18   Class:           ELFCLASS32
19   Data:            ELFDATA2LSB
20   Type:            ET_REL
21   Machine:         EM_MIPS
22   Flags:           []
23
24 Sections:
25   - Name:          .text
26     Type:          SHT_PROGBITS
27     Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
28     AddressAlign:  0x04
29     Size:          0x04
30
31 Symbols:
32   Global:
33     - Name:        T
34       Section:     .text
35
36 # mips16.o
37 ---
38 FileHeader:
39   Class:           ELFCLASS32
40   Data:            ELFDATA2LSB
41   Type:            ET_REL
42   Machine:         EM_MIPS
43   Flags:           [EF_MIPS_ABI_O32, EF_MIPS_ARCH_32, EF_MIPS_ARCH_ASE_M16]
44
45 Sections:
46   - Name:          .text
47     Type:          SHT_PROGBITS
48     Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
49     AddressAlign:  0x04
50     Size:          0x04
51
52 Symbols:
53   Global:
54     - Name:        T
55       Section:     .text
56 ...