]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/elf/Mips/opt-emulation.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / elf / Mips / opt-emulation.test
1 # Check MIPS specific arguments of the -m command line option.
2
3 # RUN: yaml2obj -format=elf %s > %t-obj
4 # RUN: lld -flavor gnu -target mipsel -m elf32ltsmip -o %t-exe %t-obj
5 # RUN: llvm-readobj -file-headers %t-exe | FileCheck -check-prefix=LE-O32 %s
6
7 # LE-O32:      Class: 32-bit (0x1)
8 # LE-O32:      DataEncoding: LittleEndian (0x1)
9 # LE-O32:      FileVersion: 1
10 # LE-O32:      OS/ABI: SystemV (0x0)
11 # LE-O32:      ABIVersion: 0
12 # LE-O32:      Machine: EM_MIPS (0x8)
13 # LE-O32:      Version: 1
14 # LE-O32:      Flags [ (0x70001005)
15 # LE-O32-NEXT:    EF_MIPS_ABI_O32 (0x1000)
16 # LE-O32-NEXT:    EF_MIPS_ARCH_32R2 (0x70000000)
17 # LE-O32-NEXT:    EF_MIPS_CPIC (0x4)
18 # LE-O32-NEXT:    EF_MIPS_NOREORDER (0x1)
19 # LE-O32-NEXT: ]
20
21 !ELF
22 FileHeader: !FileHeader
23   Class: ELFCLASS32
24   Data: ELFDATA2LSB
25   Type: ET_REL
26   Machine: EM_MIPS
27   Flags: [EF_MIPS_NOREORDER, EF_MIPS_CPIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R2]
28
29 Sections:
30 - Name: .text
31   Type: SHT_PROGBITS
32   Content: "00000000"
33   AddressAlign: 16
34   Flags: [SHF_EXECINSTR, SHF_ALLOC]
35
36 Symbols:
37   Global:
38     - Name: __start
39       Section: .text
40       Value: 0x0
41       Size: 4