From faf5d86e0f575bdb459f0cf8ace7a89ca3dc43c1 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Wed, 3 May 2017 17:01:07 +0300 Subject: Change relocations in ngen-ed code with PC-relative constants for Linux ARM32. --- src/jit/emitarm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jit/emitarm.cpp') diff --git a/src/jit/emitarm.cpp b/src/jit/emitarm.cpp index 2b8eb25bc2..9ec8e07756 100644 --- a/src/jit/emitarm.cpp +++ b/src/jit/emitarm.cpp @@ -5387,7 +5387,7 @@ BYTE* emitter::emitOutputLJ(insGroup* ig, BYTE* dst, instrDesc* i) { assert(ins == INS_movt || ins == INS_movw); if ((ins == INS_movt) && emitComp->info.compMatchedVM) - emitRecordRelocation((void*)(dst - 8), (void*)distVal, IMAGE_REL_BASED_THUMB_MOV32); + emitHandlePCRelativeMov32((void*)(dst - 8), (void*)distVal); } } else @@ -6011,7 +6011,7 @@ size_t emitter::emitOutputInstr(insGroup* ig, instrDesc* id, BYTE** dp) assert((ins == INS_movt) || (ins == INS_movw)); dst += emitOutput_Thumb2Instr(dst, code); if ((ins == INS_movt) && emitComp->info.compMatchedVM) - emitRecordRelocation((void*)(dst - 8), (void*)imm, IMAGE_REL_BASED_THUMB_MOV32); + emitHandlePCRelativeMov32((void*)(dst - 8), (void*)imm); } else { -- cgit v1.2.3