| 32 | #include <dlfcn.h> |
| 33 | |
| 34 | std::string GetLibraryPath_impl(void* symbol) |
| 35 | { |
| 36 | Dl_info info; |
| 37 | if (dladdr(symbol, &info)) |
| 38 | { |
| 39 | return info.dli_fname; |
| 40 | } |
| 41 | return ""; |
| 42 | } |
| 43 | |
| 44 | void* GetSymbol_impl(const ModuleInfo& moduleInfo, const char* symbol) |
| 45 | { |