[Mesa-users] dlsym

Daniel Melo Jorge da Cunha dmjcunha at gmail.com
Sat Feb 1 08:37:02 PST 2014


2014-02-01 Daniel Melo Jorge da Cunha <dmjcunha at gmail.com>:

> Hi, I use fedora and X and I am in .../src/mesa/main/dlopen.h.
> Is dlsym really calling _mesa_dlsym(...)?
>
> First, I found no #define statement for __blrts in the entire mesa's tree.
>
> I think in my case (fedora and X) it goes to #elif defined(HAVE_DLOPEN),
> which is strange because u.v = dlsym(handle, fname) would enter in an
> infinite recursion if dlsym is _mesa_dlsym.
>
> I also found strange the fact that the parameters void *handle and const
> char *fname are not attributed to any variable in _mesa_dlsym(..)
>
> Because of that I don't see the purpose of
> ../src/gallium/auxiliary/util/u_dl.c util_dl_get_proc_address(...) function
> when it calls:
>
> return (util_dl_proc) pointer_to_func(dlsym((void *)library, procname));
>
> If the answer is in the assembly code generated by scripts someone could
> please give me a basic idea of what's going on because I have no knowledge
> of assembly and scripts.
>
> Thanks in advance.
>

Please, disregard this question. I hate this. I spent a long time trying to
understand and when I give up and ask for help, I can understand. So,
please disregard this question. I have others more complicated :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-users/attachments/20140201/6626a6dd/attachment.html>


More information about the mesa-users mailing list