[lldb-dev] dlsym() and RTLD_FIRST

Zachary Turner zturner at google.com
Thu Aug 21 15:31:16 PDT 2014


Can someone explain this flag to me?  I've read the documentation, but it's
still not clear to me.  If you ask dlsym() to search some module X, why
would it ever search modules other than X?

The reason I ask about this is that llvm support library already has a
DynamicLibrary class whose purpose almost exactly matches what we're using
the Host::DynamicLibrary related functions for.  However, it doesn't use
the RTLD_FIRST flag, and so I'm not sure what the implications are of us
using it and deleting our own DynamicLibrary code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140821/a4f7a842/attachment.html>


More information about the lldb-dev mailing list