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 @@ -132,6 +132,9 @@ break; } case COFF::RelocationTypeAMD64::IMAGE_REL_AMD64_SECREL: { + // FIXME: SECREL to external symbol should be handled + if (!GraphSymbol->isDefined()) + return Error::success(); Kind = EdgeKind_coff_x86_64::SecRel32; Addend = *reinterpret_cast(FixupPtr); break;