MCJIT relocation resolution.
authorJim Grosbach <grosbach@apple.com>
Wed, 13 Apr 2011 15:28:10 +0000 (15:28 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 13 Apr 2011 15:28:10 +0000 (15:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129445 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/MCJIT/MCJIT.cpp

index 148e0d91b4817de751b21467986e31b88d01510a..024ed909af8088219b7a8972f11a696f5ac2ce98 100644 (file)
@@ -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() {