From 222045c06326666ebdc94c9f53b425667511463b Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Wed, 13 Apr 2011 15:28:10 +0000 Subject: [PATCH] MCJIT relocation resolution. llvm-svn: 129445 --- lib/ExecutionEngine/MCJIT/MCJIT.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/lib/ExecutionEngine/MCJIT/MCJIT.cpp index 148e0d91b48..024ed909af8 100644 --- a/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -93,6 +93,8 @@ MCJIT::MCJIT(Module *m, TargetMachine *tm, TargetJITInfo &tji, Buffer.size())); if (Dyld.loadObject(MB)) report_fatal_error(Dyld.getErrorString()); + // Resolve any relocations. + Dyld.resolveRelocations(); } MCJIT::~MCJIT() {