Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
kunalspathak committed Feb 1, 2024
commit 349167b4a9ecec1f6f0e5adab9122f0412d9ee49
2 changes: 1 addition & 1 deletion src/coreclr/jit/emitarm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16158,7 +16158,7 @@ size_t emitter::emitOutputInstr(insGroup* ig, instrDesc* id, BYTE** dp)
dst += emitOutput_Instr(dst, code);
if (id->idIsTlsGD() && id->idIsLargeCns())
{
emitRecordRelocation(dst, (void*)emitGetInsSC(id), IMAGE_REL_AARCH64_TLSDESC_LD64_LO12);
emitRecordRelocation(odst, (void*)emitGetInsSC(id), IMAGE_REL_AARCH64_TLSDESC_LD64_LO12);
}
break;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,10 @@ public static unsafe void WriteValue(RelocType relocType, void* location, long v
case RelocType.IMAGE_REL_TPOFF:
case RelocType.IMAGE_REL_SYMBOL_SIZE:
case RelocType.IMAGE_REL_FILE_ABSOLUTE:
case RelocType.IMAGE_REL_AARCH64_TLSDESC_LD64_LO12:
*(int*)location = (int)value;
break;
case RelocType.IMAGE_REL_AARCH64_TLSDESC_LD64_LO12:
break;
case RelocType.IMAGE_REL_BASED_DIR64:
*(long*)location = value;
break;
Expand Down