Skip to content

Relocation problem on ARM64 Linux #121878

Closed

Description

@MichalStrehovsky

Ran into this in #121857, going to disable Linux ARM64 async testing on this issue.

2025-11-21T07:21:02.5383695Z     Assertion failed.
2025-11-21T07:21:02.5384022Z     (addInstr & 0xFFC00000) == 0x91400000
2025-11-21T07:21:02.5384922Z        at ILCompiler.DependencyAnalysis.Relocation.PutArm64TlsRel12(UInt32* pCode, Int32 imm12) in /_/src/coreclr/tools/Common/Compiler/DependencyAnalysis/Relocation.cs:line 316
2025-11-21T07:21:02.5385874Z        at Internal.JitInterface.CorInfoImpl.recordRelocation(Void* location, Void* locationRW, Void* target, UInt16 fRelocType, Int32 addlDelta) in /_/src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs:line 4201
2025-11-21T07:21:02.5386472Z        at Internal.JitInterface.CorInfoImpl._recordRelocation(IntPtr thisHandle, IntPtr* ppException, Void* location, Void* locationRW, Void* target, UInt16 fRelocType, Int32 addlDelta) in /_/src/coreclr/tools/Common/JitInterface/CorInfoImpl_generated.cs:line 2567
2025-11-21T07:21:02.5387432Z        at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, IntPtr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize)

Activity

  1. added
    untriaged
    on Nov 21, 2025
  2. dotnet-policy-service commented on Nov 21, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
    See info in area-owners.md if you want to be subscribed.

  3. added
    os-linux
    on Nov 21, 2025
  4. added this to the 11.0.0 milestone on Nov 22, 2025
  5. removed
    untriaged
    on Nov 22, 2025
  6. added
    area-CodeGen-coreclr
    and removed on Nov 24, 2025
  7. dotnet-policy-service commented on Nov 24, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
    See info in area-owners.md if you want to be subscribed.

  8. MichalStrehovsky commented on Nov 24, 2025

    @MichalStrehovsky
    MemberAuthor

    Moving to the JIT side. In emitOutputDataSec, RyuJIT is calling recordRelocation with what it thinks is IMAGE_REL_BASED_DIR64, however the JitInterface doesn't consider IMAGE_REL_BASED_DIR64 valid on ARM64.

    After #104282 value 0xA is considered IMAGE_REL_ARM64_SECREL_HIGH12A on ARM64. Passing reloc types through JitInterface is weird, this could use some cleaning up so that we don't pass around untyped numbers (e.g. Vlad's comment #104282 (comment) on the TLS change).

  9. self-assigned this
    on Nov 24, 2025
  10. added a commit that references this issue on Nov 25, 2025
    bd364ce
  11. locked and limited conversation to collaborators on Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-arm64area-CodeGen-coreclros-linuxruntime-async

Type

No type

Projects

  • Status
    No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions