| 182 | } |
| 183 | |
| 184 | Status PosixEnv::LoadLibrary(const char* library_filename, void** handle) { |
| 185 | *handle = dlopen(library_filename, RTLD_NOW | RTLD_LOCAL); |
| 186 | if (!*handle) { |
| 187 | return Status::NotFound(dlerror()); |
| 188 | } |
| 189 | return Status::OK(); |
| 190 | } |
| 191 | |
| 192 | Status PosixEnv::GetSymbolFromLibrary(void* handle, const char* symbol_name, |
| 193 | void** symbol) { |