Displaying 4 results from an estimated 4 matches for "sys_dl_sym".
2007 Jul 20
2
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
...loaded. If the symbol
cannot be found, NULL is returned.
And lt_dlerror() also appears to have the same behaviour as its non-lt_
counterpart, so you'd think you'd have to do the same as above; use
lt_dlerror().
However, it appears things like libtool's
static lt_ptr
sys_dl_sym (loader_data, module, symbol)
lt_user_data loader_data;
lt_module module;
const char *symbol;
{
lt_ptr address = dlsym (module, symbol);
if (!address)
{
LT_DLMUTEX_SETERROR (DLERROR (SYMBOL_NOT_FOUND));
}
return address;...
2007 Jul 20
0
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
..., NULL is returned.
>
> And lt_dlerror() also appears to have the same behaviour as its non-lt_
> counterpart, so you'd think you'd have to do the same as above; use
> lt_dlerror().
>
> However, it appears things like libtool's
>
> static lt_ptr
> sys_dl_sym (loader_data, module, symbol)
> lt_user_data loader_data;
> lt_module module;
> const char *symbol;
> {
> lt_ptr address = dlsym (module, symbol);
>
> if (!address)
> {
> LT_DLMUTEX_SETERROR (DLERROR (SYMBOL_NO...
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
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