Displaying 4 results from an estimated 4 matches for "lt_005fdlsym".
2007 Jul 20
2
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
...ressOfSymbol(NameStr)
>
> Which is part of LLVM's lib/System package. That package implements
> this using the libtool "ltdl" library, which presumably gets this
> right in an operating system correct way.
Presumably?
http://www.gnu.org/software/libtool/manual.html#index-lt_005fdlsym-167
says:
Function: lt_ptr lt_dlsym(lt_dlhandle handle, const char *name)
Return the address in the module handle, where the symbol given
by the null-terminated string name is loaded. If the symbol
cannot be found, NULL is returned.
And lt_dlerror() also appears to h...
2007 Jul 20
0
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
Hi Ralph,
On Fri, 2007-07-20 at 10:38 +0100, Ralph Corderoy wrote:
> Hi Chris,
> I could be missing something, but shouldn't the use of dlsym() be
>
> char *err;
> void *p;
>
> if ((err = dlerror())) {
> error("earlier undetected dlerror: %s\n", err);
> }
> p = dlsym(handle, sym);
> if ((err = dlerror())) {
>
2007 Jul 20
0
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
...t; > Which is part of LLVM's lib/System package. That package implements
> > this using the libtool "ltdl" library, which presumably gets this
> > right in an operating system correct way.
>
> Presumably?
> http://www.gnu.org/software/libtool/manual.html#index-lt_005fdlsym-167
> says:
>
> Function: lt_ptr lt_dlsym(lt_dlhandle handle, const char *name)
>
> Return the address in the module handle, where the symbol given
> by the null-terminated string name is loaded. If the symbol
> cannot be found, NULL is returned....
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