Displaying 4 results from an estimated 4 matches for "g_symbol".
Did you mean:
g_symbols
2009 Jan 29
2
[LLVMdev] [PATCH] Build fails on windows with VC2009
...Win32/DynamicLibrary.inc (revision 63322)
+++ lib/System/Win32/DynamicLibrary.inc (working copy)
@@ -156,8 +156,8 @@
void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
// First check symbols added via AddSymbol().
- std::map<std::string, void *>::iterator I = g_symbols.find(symbolName);
- if (I != g_symbols.end())
+ std::map<std::string, void *>::iterator I = g_symbols().find(symbolName);
+ if (I != g_symbols().end())
return I->second;
// Now search the libraries.
-------------- next part --------------
An HTML attachment was scrubbed...
URL...
2007 Jul 20
0
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
On Fri, 20 Jul 2007, Ralph Corderoy wrote:
> I could be missing something, but shouldn't the use of dlsym() be
> The authors of dlsym() realised the return value was overloaded AFAICS.
Yep, patches welcome :)
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
2007 Jul 20
2
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
...in
the error condition) but it should allow you to find symbols whose
address is 0.
Reid.
Index: DynamicLibrary.cpp
===================================================================
--- DynamicLibrary.cpp (revision 40112)
+++ DynamicLibrary.cpp (working copy)
@@ -130,11 +130,19 @@
if (I != g_symbols.end())
return I->second;
+ // Clear the error status of the ltdl library
+ lt_dlerror();
+
// Now search the libraries.
for (std::vector<lt_dlhandle>::iterator I = OpenedHandles.begin(),
E = OpenedHandles.end(); I != E; ++I) {
lt_ptr ptr = lt_dlsym(*I, symbolNam...
2007 Jul 20
4
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
Hi Chris,
> Once you have that, you are hitting another problem. Specifically,
> the JIT::getPointerToNamedFunction method in
> lib/ExecutionEngine/JIT/Intercept.cpp just does a dlsym on missing
> symbols. If dlsym returns null, you get the error message.
>
> The problem here is that .objc_class_name_* are special symbols that
> are used by the objc linker support and they