From bea313cd5499c744d15149127e69bb175c8f78cc Mon Sep 17 00:00:00 2001 From: Egor Chesakov Date: Wed, 22 Aug 2018 22:25:08 -0700 Subject: [PATCH] Call idSetRelocFlags in emitIns_R_L only if opts.compReloc src/jit/emitarm.cpp Commit migrated from https://github.com/dotnet/coreclr/commit/2a6d6e26105dbe223015b98788fdfd12311dfc6d --- src/coreclr/src/jit/emitarm.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/coreclr/src/jit/emitarm.cpp b/src/coreclr/src/jit/emitarm.cpp index 2a4c06fe..b1b263b 100644 --- a/src/coreclr/src/jit/emitarm.cpp +++ b/src/coreclr/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++; -- 2.7.4