diff options
Diffstat (limited to 'test/old-elf/Mips/plt-entry-mixed-2.test')
-rw-r--r-- | test/old-elf/Mips/plt-entry-mixed-2.test | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/test/old-elf/Mips/plt-entry-mixed-2.test b/test/old-elf/Mips/plt-entry-mixed-2.test deleted file mode 100644 index 299aa5ce065c..000000000000 --- a/test/old-elf/Mips/plt-entry-mixed-2.test +++ /dev/null @@ -1,93 +0,0 @@ -# REQUIRES: mips - -# Conditions: -# a) Object file contains both R_MIPS_26 and R_MICROMIPS_26_S1 relocations. -# Check: -# a) PLT contains both regular and compressed PLT entries - -# Build shared library -# RUN: yaml2obj -format=elf -docnum 1 %s > %t.so.o -# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.so.o - -# Build executable -# RUN: yaml2obj -format=elf -docnum 2 %s > %t.o.o -# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o.o %t.so -# RUN: llvm-objdump -s %t.exe | FileCheck %s - -# FIXME (simon): Check the disassembler output when llvm-objdump starts -# to support microMIPS instruction encoding. - -# CHECK: Contents of section .plt: -# CHECK-NEXT: 400170 40001c3c 0020998f 00209c27 23c01c03 -# CHECK-NEXT: 400180 2578e003 82c01800 09f82003 feff1827 -# CHECK-NEXT: 400190 40000f3c 0820f98d 08002003 0820f825 -# CHECK-NEXT: 4001a0 00799a07 22ff0000 9945020f - -# so.o ---- -FileHeader: - Class: ELFCLASS32 - Data: ELFDATA2LSB - Type: ET_REL - Machine: EM_MIPS - Flags: [EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32] - -Sections: - - Name: .text - Type: SHT_PROGBITS - Size: 0x0C - AddressAlign: 16 - Flags: [SHF_EXECINSTR, SHF_ALLOC] - -Symbols: - Global: - - Name: T2 - Section: .text - Type: STT_FUNC - Value: 0x0 - Size: 4 - -# o.o ---- -FileHeader: - Class: ELFCLASS32 - Data: ELFDATA2LSB - Type: ET_REL - Machine: EM_MIPS - Flags: [EF_MIPS_CPIC, EF_MIPS_ABI_O32, - EF_MIPS_ARCH_32R2, EF_MIPS_MICROMIPS] - -Sections: -- Name: .text - Type: SHT_PROGBITS - Content: "0000000C000000000000000000000000" - AddressAlign: 16 - Flags: [SHF_EXECINSTR, SHF_ALLOC] - -- Name: .rel.text - Type: SHT_REL - Info: .text - AddressAlign: 4 - Relocations: - - Offset: 0x0 - Symbol: T2 - Type: R_MIPS_26 - - Offset: 0x8 - Symbol: T2 - Type: R_MICROMIPS_26_S1 - -Symbols: - Global: - - Name: T0 - Section: .text - Type: STT_FUNC - Value: 0x0 - Size: 0x8 - - Name: T1 - Section: .text - Type: STT_FUNC - Value: 0x8 - Size: 0x8 - Other: [STO_MIPS_MICROMIPS] - - Name: T2 -... |