[mips][mcjit] Calculate correct addend for HI16 and PCHI16 reloc
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Thu, 13 Aug 2015 15:12:49 +0000 (15:12 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Thu, 13 Aug 2015 15:12:49 +0000 (15:12 +0000)
commitd22164dc3bf6de749b129d3293c3ac654e728c41
tree720593837bf022c093abf31dd799eddaf1ba766f
parent25f51850a4f2f29c16e78e5a889527f4ae486d61
[mips][mcjit] Calculate correct addend for HI16 and PCHI16 reloc

Previously, for O32 ABI we did not calculate correct addend for R_MIPS_HI16
and R_MIPS_PCHI16 relocations. This patch fixes that.

Patch by Vladimir Radosavljevic.

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

llvm-svn: 244897
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
llvm/test/ExecutionEngine/RuntimeDyld/Mips/ELF_O32_PIC_relocations.s