Index: llvm/lib/ExecutionEngine/JITLink/COFF_x86_64.cpp =================================================================== --- llvm/lib/ExecutionEngine/JITLink/COFF_x86_64.cpp +++ llvm/lib/ExecutionEngine/JITLink/COFF_x86_64.cpp @@ -117,6 +117,30 @@ Addend -= 1; break; } + case COFF::RelocationTypeAMD64::IMAGE_REL_AMD64_REL32_2: { + Kind = EdgeKind_coff_x86_64::PCRel32; + Addend = *reinterpret_cast(FixupPtr); + Addend -= 2; + break; + } + case COFF::RelocationTypeAMD64::IMAGE_REL_AMD64_REL32_3: { + Kind = EdgeKind_coff_x86_64::PCRel32; + Addend = *reinterpret_cast(FixupPtr); + Addend -= 3; + break; + } + case COFF::RelocationTypeAMD64::IMAGE_REL_AMD64_REL32_4: { + Kind = EdgeKind_coff_x86_64::PCRel32; + Addend = *reinterpret_cast(FixupPtr); + Addend -= 4; + break; + } + case COFF::RelocationTypeAMD64::IMAGE_REL_AMD64_REL32_5: { + Kind = EdgeKind_coff_x86_64::PCRel32; + Addend = *reinterpret_cast(FixupPtr); + Addend -= 5; + break; + } case COFF::RelocationTypeAMD64::IMAGE_REL_AMD64_ADDR64: { Kind = EdgeKind_coff_x86_64::Pointer64; Addend = *reinterpret_cast(FixupPtr);