Skip to content

Commit

Permalink
Fix ARM reloc issue
Browse files Browse the repository at this point in the history
  • Loading branch information
janvorli committed Jul 19, 2021
1 parent 99aa111 commit 09c5999
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/coreclr/vm/arm/asmhelpers.S
Original file line number Diff line number Diff line change
Expand Up @@ -979,14 +979,20 @@ g_rgWriteBarrierDescriptors:

.global g_rgWriteBarrierDescriptors

.text

// ------------------------------------------------------------------
// __declspec(naked) void F_CALL_CONV JIT_WriteBarrier_Callable(Object **dst, Object* val)
LEAF_ENTRY JIT_WriteBarrier_Callable

// Branch to the write barrier
ldr r2, =JIT_WriteBarrier_Loc // or R3? See targetarm.h
ldr r2, 2f // or R3? See targetarm.h
1:
add r2, pc
ldr r2, [r2]
ldr pc, [r2]

2:
.long JIT_WriteBarrier_Loc(GOT_PREL)-((1b+4)-2b)
LEAF_END JIT_WriteBarrier_Callable

#ifdef FEATURE_READYTORUN
Expand Down

0 comments on commit 09c5999

Please sign in to comment.