diff --git a/src/coreclr/tools/Common/Compiler/DependencyAnalysis/Relocation.cs b/src/coreclr/tools/Common/Compiler/DependencyAnalysis/Relocation.cs index 4ca57a637fdf51..8fe1e21be92cae 100644 --- a/src/coreclr/tools/Common/Compiler/DependencyAnalysis/Relocation.cs +++ b/src/coreclr/tools/Common/Compiler/DependencyAnalysis/Relocation.cs @@ -715,6 +715,8 @@ public static int GetSize(RelocType relocType) RelocType.IMAGE_REL_BASED_ARM64_PAGEOFFSET_12L => 4, RelocType.IMAGE_REL_BASED_THUMB_MOV32 => 8, RelocType.IMAGE_REL_BASED_THUMB_MOV32_PCREL => 8, + RelocType.IMAGE_REL_BASED_THUMB_BRANCH24 => 4, + RelocType.IMAGE_REL_BASED_ARM64_BRANCH26 => 4, RelocType.IMAGE_REL_BASED_LOONGARCH64_PC => 8, RelocType.IMAGE_REL_BASED_LOONGARCH64_JIR => 8, RelocType.IMAGE_REL_BASED_RISCV64_CALL_PLT => 8, diff --git a/src/coreclr/tools/Common/Compiler/ObjectWriter/PEObjectWriter.cs b/src/coreclr/tools/Common/Compiler/ObjectWriter/PEObjectWriter.cs index 48b5209a8f81c0..ad67397800d1ea 100644 --- a/src/coreclr/tools/Common/Compiler/ObjectWriter/PEObjectWriter.cs +++ b/src/coreclr/tools/Common/Compiler/ObjectWriter/PEObjectWriter.cs @@ -904,7 +904,7 @@ private unsafe void ResolveRelocations(int sectionIndex, List