Index: llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp =================================================================== --- llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -239,6 +239,9 @@ // Resolve any outstanding relocations. Dyld.resolveRelocations(); + if (Dyld.hasError()) + report_fatal_error(Dyld.getErrorString()); + OwnedModules.markAllLoadedModulesAsFinalized(); // Register EH frame data for any module we own which has been loaded