From: Egor Chesakov Date: Thu, 23 Aug 2018 05:25:08 +0000 (-0700) Subject: Call idSetRelocFlags in emitIns_R_L only if opts.compReloc src/jit/emitarm.cpp X-Git-Tag: accepted/tizen/unified/20190422.045933~1330^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a6d6e26105dbe223015b98788fdfd12311dfc6d;p=platform%2Fupstream%2Fcoreclr.git Call idSetRelocFlags in emitIns_R_L only if opts.compReloc src/jit/emitarm.cpp --- diff --git a/src/jit/emitarm.cpp b/src/jit/emitarm.cpp index 2a4c06f..b1b263b 100644 --- a/src/jit/emitarm.cpp +++ b/src/jit/emitarm.cpp @@ -4290,9 +4290,12 @@ void emitter::emitIns_R_L(instruction ins, emitAttr attr, BasicBlock* dst, regNu id->idjNext = emitCurIGjmpList; emitCurIGjmpList = id; - // Set the relocation flags - these give hint to zap to perform - // relocation of the specified 32bit address. - id->idSetRelocFlags(attr); + if (emitComp->opts.compReloc) + { + // Set the relocation flags - these give hint to zap to perform + // relocation of the specified 32bit address. + id->idSetRelocFlags(attr); + } #if EMITTER_STATS emitTotalIGjmps++;