[mips64] Emit correct addend for some PC-relative relocations
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 23 Jun 2015 13:54:42 +0000 (13:54 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 23 Jun 2015 13:54:42 +0000 (13:54 +0000)
commit7c5bf4d38a681cf4b3f04a30e591120cdb50f302
tree262fe552e3407e52c18083f94b1d056c1e5994af
parent14e438dfb3f421bfeff130f8f5d56504876dbf79
[mips64] Emit correct addend for some PC-relative relocations

So far, LLVM has not emitted correct addend for N64 and N32 ABI. This patch
fixes that. It also removes fixup from MCJIT for R_MIPS_PC16 relocation.

Patch by Vladimir Radosavljevic.

Differential Revision: http://reviews.llvm.org/D10565

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240404 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
test/MC/Mips/branch-pseudos.s
test/MC/Mips/mips-fpu-instructions.s
test/MC/Mips/mips32r6/relocations.s
test/MC/Mips/mips64r6/relocations.s
test/MC/Mips/relocation.s