Lines Matching defs:library
9 // STL, to keep the final library small, and avoid ugly dependency issues.
103 ScopedLibrary library;
104 if (!opener.Open(library.GetPtr(), library_name, context)) {
109 if (!crazy_library_get_info(library.Get(), context, &info)) {
110 LOG_ERROR("Could not get library information for %s: %s",
115 // Release library object to keep it alive after the function returns.
116 library.Release();
121 LOG_INFO("Success loading library %s", library_name);
125 // Used for opening the library in a regular file.
128 bool Open(crazy_library_t** library,
133 bool FileLibraryOpener::Open(crazy_library_t** library,
136 if (!crazy_library_open(library, library_name, context)) {
144 // Used for opening the library in a zip file.
148 bool Open(crazy_library_t** library,
155 bool ZipLibraryOpener::Open(crazy_library_t** library,
158 if (!crazy_library_open_in_zip_file(library,
169 // Load a library with the chromium linker. This will also call its
172 // Dalvik uses the system's dlsym() which won't see the new library,
178 // |library_name| is the library name (e.g. libfoo.so).
198 // Load a library from a zipfile with the chromium linker. The
199 // library in the zipfile must be uncompressed and page aligned.
200 // The basename of the library is given. The library is expected
203 // so that the Android Package Manager doesn't extract the library into
206 // Loading the library will also call its JNI_OnLoad() method, which
209 // which won't see the new library, so explicit registration is mandatory.
214 // |zipfile_name| is the filename of the zipfile containing the library.
215 // |library_name| is the library base name (e.g. libfoo.so).
335 ScopedLibrary library;
336 if (!crazy_library_find_by_name(lib_name.c_str(), library.GetPtr())) {
346 if (!crazy_library_create_shared_relro(library.Get(),
371 ScopedLibrary library;
372 if (!crazy_library_find_by_name(lib_name.c_str(), library.GetPtr())) {
385 LOG_INFO("library=%s relro start=%p size=%p fd=%d",
388 if (!crazy_library_use_shared_relro(library.Get(),
396 LOG_INFO("Library %s using shared RELRO section!", lib_name.c_str());