Symbol addr to library handle?
Unsolved
General and Desktop
-
I need to pass one library handle to another (non-Qt) one, but QLibrary hides the handle. On Windows I can recover it with
GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, reinterpret_cast<const TCHAR *>(ptr_to_func_in_lib), &lib_handle)
, but how can I do this on Linux?Assume that I have
qLib.setLoadHints(QLibrary::ExportExternalSymbolsHint)
:- If I should be using dladdr(), is
Dl_info::dli_fbase
suitable for subsequent dlsym() calls in the other non-Qt library? - Or should I
dlopen(qLib.fileName().toLocal8Bit().data())
again, hoping it will return the exact same value (representing the loaded instance of that so)?
- If I should be using dladdr(), is