[lld] r203407 - [Mips] Rename R_MIPS_26 relocation handling test case.
Simon Atanasyan
simon at atanasyan.com
Sun Mar 9 06:05:39 PDT 2014
Author: atanasyan
Date: Sun Mar 9 08:05:39 2014
New Revision: 203407
URL: http://llvm.org/viewvc/llvm-project?rev=203407&view=rev
Log:
[Mips] Rename R_MIPS_26 relocation handling test case.
Added:
lld/trunk/test/elf/Mips/r26-1.test
- copied, changed from r203406, lld/trunk/test/elf/Mips/r26.test
Removed:
lld/trunk/test/elf/Mips/r26.test
Copied: lld/trunk/test/elf/Mips/r26-1.test (from r203406, lld/trunk/test/elf/Mips/r26.test)
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Mips/r26-1.test?p2=lld/trunk/test/elf/Mips/r26-1.test&p1=lld/trunk/test/elf/Mips/r26.test&r1=203406&r2=203407&rev=203407&view=diff
==============================================================================
--- lld/trunk/test/elf/Mips/r26.test (original)
+++ lld/trunk/test/elf/Mips/r26-1.test Sun Mar 9 08:05:39 2014
@@ -32,32 +32,32 @@
# EXE: Disassembly of section .plt:
# EXE: .plt:
# PLTA entry. Points to the .got.plt[1]
-# EXE: 400180: 40 00 0f 3c lui $15, 64
-# EXE-NEXT: 400184: 08 20 f9 8d lw $25, 8200($15)
-# EXE-NEXT: 400188: 08 00 20 03 jr $25
-# EXE-NEXT: 40018c: 08 20 f8 25 addiu $24, $15, 8200
+# EXE: 400190: 40 00 0f 3c lui $15, 64
+# EXE-NEXT: 400194: 08 20 f9 8d lw $25, 8200($15)
+# EXE-NEXT: 400198: 08 00 20 03 jr $25
+# EXE-NEXT: 40019c: 08 20 f8 25 addiu $24, $15, 8200
# EXE: Disassembly of section .text:
# EXE: glob:
-# EXE-NEXT: 400190: 09 f8 20 03 jalr $25
-# EXE-NEXT: 400194: 00 00 00 00 nop
+# EXE-NEXT: 4001a0: 09 f8 20 03 jalr $25
+# EXE-NEXT: 4001a4: 00 00 00 00 nop
#
# Jump to 'loc' label address
-# EXE-NEXT: 400198: 68 00 10 0c jal 4194720
-# EXE-NEXT: 40019c: 00 00 00 00 nop
+# EXE-NEXT: 4001a8: 6c 00 10 0c jal 4194736
+# EXE-NEXT: 4001ac: 00 00 00 00 nop
#
# EXE: loc:
# Jump to 'glob' label address
-# EXE-NEXT: 4001a0: 64 00 10 0c jal 4194704
-# EXE-NEXT: 4001a4: 00 00 00 00 nop
+# EXE-NEXT: 4001b0: 68 00 10 0c jal 4194720
+# EXE-NEXT: 4001b4: 00 00 00 00 nop
#
# Jump to the first PLT entry (.plt + 32) for ext1 entry
-# EXE-NEXT: 4001a8: 60 00 10 0c jal 4194688
-# EXE-NEXT: 4001ac: 00 00 00 00 nop
+# EXE-NEXT: 4001b8: 64 00 10 0c jal 4194704
+# EXE-NEXT: 4001bc: 00 00 00 00 nop
# EXE: Sections:
# EXE: Idx Name Size Address Type
-# EXE: 6 .plt 00000030 0000000000400160 TEXT DATA
+# EXE: 6 .plt 00000030 0000000000400170 TEXT DATA
# EXE: 10 .got.plt 0000000c 0000000000402000 DATA
.abicalls
Removed: lld/trunk/test/elf/Mips/r26.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Mips/r26.test?rev=203406&view=auto
==============================================================================
--- lld/trunk/test/elf/Mips/r26.test (original)
+++ lld/trunk/test/elf/Mips/r26.test (removed)
@@ -1,72 +0,0 @@
-# Check handling of R_MIPS_26 relocation.
-
-# Build shared library
-# RUN: llvm-mc -triple=mipsel -filetype=obj -relocation-model=pic \
-# RUN: -o=%t1 %p/Inputs/ext.s
-# RUN: lld -flavor gnu -target mipsel -shared -o %t2 %t1
-
-# Build executable
-# RUN: llvm-mc -triple=mipsel -filetype=obj -o=%t3 %s
-# RUN: llvm-readobj -relocations %t3 | FileCheck -check-prefix=OBJ-REL %s
-# RUN: lld -flavor gnu -target mipsel -e glob -o %t4 %t3 %t2
-# RUN: llvm-objdump -section-headers -disassemble %t4 | \
-# RUN: FileCheck -check-prefix=EXE %s
-# RUN: llvm-readobj -relocations %t4 | FileCheck -check-prefix=EXE-REL %s
-
-# Object file has three R_MIPS_26 relocations
-# OBJ-REL: Relocations [
-# OBJ-REL-NEXT: Section (2) .rel.text {
-# OBJ-REL-NEXT: 0x8 R_MIPS_26 .text 0x0
-# OBJ-REL-NEXT: 0x10 R_MIPS_26 glob 0x0
-# OBJ-REL-NEXT: 0x18 R_MIPS_26 ext1 0x0
-# OBJ-REL-NEXT: }
-# OBJ-REL-NEXT: ]
-
-# Executable file has the only relocation for external symbol
-# EXE-REL: Relocations [
-# EXE-REL-NEXT: Section (5) .rel.plt {
-# EXE-REL-NEXT: 0x402008 R_MIPS_JUMP_SLOT ext1 0x0
-# EXE-REL-NEXT: }
-# EXE-REL-NEXT: ]
-
-# EXE: Disassembly of section .plt:
-# EXE: .plt:
-# PLTA entry. Points to the .got.plt[1]
-# EXE: 400180: 40 00 0f 3c lui $15, 64
-# EXE-NEXT: 400184: 08 20 f9 8d lw $25, 8200($15)
-# EXE-NEXT: 400188: 08 00 20 03 jr $25
-# EXE-NEXT: 40018c: 08 20 f8 25 addiu $24, $15, 8200
-
-# EXE: Disassembly of section .text:
-# EXE: glob:
-# EXE-NEXT: 400190: 09 f8 20 03 jalr $25
-# EXE-NEXT: 400194: 00 00 00 00 nop
-#
-# Jump to 'loc' label address
-# EXE-NEXT: 400198: 68 00 10 0c jal 4194720
-# EXE-NEXT: 40019c: 00 00 00 00 nop
-#
-# EXE: loc:
-# Jump to 'glob' label address
-# EXE-NEXT: 4001a0: 64 00 10 0c jal 4194704
-# EXE-NEXT: 4001a4: 00 00 00 00 nop
-#
-# Jump to the first PLT entry (.plt + 32) for ext1 entry
-# EXE-NEXT: 4001a8: 60 00 10 0c jal 4194688
-# EXE-NEXT: 4001ac: 00 00 00 00 nop
-
-# EXE: Sections:
-# EXE: Idx Name Size Address Type
-# EXE: 6 .plt 00000030 0000000000400160 TEXT DATA
-# EXE: 10 .got.plt 0000000c 0000000000402000 DATA
-
- .abicalls
- .global glob
- .ent glob
-glob:
- jal $t9
- jal loc
-loc:
- jal glob
- jal ext1
- .end glob
More information about the llvm-commits
mailing list