 +      DynamicLibrary::SearchForAddressOfSymbol(symbolName);
 +    }
 +  }
-+  return (void *)(intptr_t) GetProcAddress((HMODULE)*dlHandle, symbolName);
++  return (void *)(intptr_t) GetProcAddress((HMODULE)dlHandle, symbolName);
  }
  
 -// Stack probing routines are in the support library (e.g. libgcc), but we don't

 //
 //                     The LLVM Compiler Infrastructure
 //
@@ -32,15 +32,9 @@
 #endif
 
 namespace llvm {

+
 #define EXPLICIT_SYMBOL(SYM)                    \
-  extern "C" { extern void *SYM; }
+  extern "C" void *SYM; symMap[#SYM] = &SYM;
 #define EXPLICIT_SYMBOL2(SYMFROM, SYMTO) EXPLICIT_SYMBOL(SYMTO)
 
 #include "explicit_symbols.inc"
 
