4 # a) Object file contains microMIPS instructions.
5 # b) There is a relocation refers arbitrary symbols and requires a PLT entry.
7 # a) PLT contains a compressed entry.
10 # RUN: yaml2obj -format=elf -docnum 1 %s > %t.so.o
11 # RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.so.o
14 # RUN: yaml2obj -format=elf -docnum 2 %s > %t.o.o
15 # RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o.o %t.so
16 # RUN: llvm-objdump -s %t.exe | FileCheck %s
18 # FIXME (simon): Check the disassembler output when llvm-objdump starts
19 # to support microMIPS instruction encoding.
21 # CHECK: Contents of section .plt:
22 # CHECK-NEXT: 400170 8079a407 23ff0000 35052525 0233feff .y..#...5.%%.3..
23 # CHECK-NEXT: 400180 ff0df945 830f000c 0079a007 22ff0000 ...E.....y.."...
24 # CHECK-NEXT: 400190 9945020f .E..
33 Flags: [EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32]
40 Flags: [SHF_EXECINSTR, SHF_ALLOC]
57 Flags: [EF_MIPS_CPIC, EF_MIPS_ABI_O32,
58 EF_MIPS_ARCH_32R2, EF_MIPS_MICROMIPS]
65 Flags: [SHF_EXECINSTR, SHF_ALLOC]
71 Flags: [SHF_WRITE, SHF_ALLOC]
80 Type: R_MICROMIPS_HI16
83 Type: R_MICROMIPS_LO16