Skip to content

Commit

Permalink
Do not perform relative code reloc on ARM in AOT (#57257)
Browse files Browse the repository at this point in the history
  • Loading branch information
kant2002 authored Aug 12, 2021
1 parent c5faf00 commit e62b82a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3578,8 +3578,10 @@ private uint getJitFlags(ref CORJIT_FLAGS flags, uint sizeInBytes)
break;
}

#if READYTORUN
if (targetArchitecture == TargetArchitecture.ARM && !_compilation.TypeSystemContext.Target.IsWindows)
flags.Set(CorJitFlag.CORJIT_FLAG_RELATIVE_CODE_RELOCS);
#endif

if (this.MethodBeingCompiled.IsUnmanagedCallersOnly)
{
Expand Down

0 comments on commit e62b82a

Please sign in to comment.