/bionic/libc/malloc_debug/ |
D | backtrace.cpp | 151 const char* soname = (entry != nullptr) ? entry->name.c_str() : info.dli_fname; in backtrace_string() local 152 if (soname == nullptr) { in backtrace_string() 153 soname = "<unknown>"; in backtrace_string() 174 frame_num, rel_pc, soname, offset_buf, name, in backtrace_string() 179 frame_num, rel_pc, soname, offset_buf); in backtrace_string()
|
/bionic/benchmarks/linker_relocation/regen/ |
D | common_types.py | 135 self.soname: str = None 142 result['soname'] = self.soname 145 result['needed'] = [lib.soname for lib in self.needed] 151 result.soname = obj['soname'] 160 result['root'] = tree.soname 172 libraries[lib.soname] = lib
|
D | gen_bench.py | 171 if d is not None and d.soname in kBionicSonames: 266 all_libs = [x for x in bfs_walk(root) if x is not root and x.soname not in kBionicSonames] 271 self._names = {x : re.sub(r'\.so$', '', x.soname) for x in all_libs} 301 if lib.soname in kBionicSonames: continue 310 needed = ' '.join([lib_dso_name(x) for x in lib.needed if x.soname not in kBionicSonames]) 335 if lib.soname in kBionicSonames: continue 342 if lib.soname in kBionicSonames: continue 362 if need.soname in kBionicSonames: continue
|
D | dump_relocs.py | 215 lib.soname = get_elf_soname(path) 216 if lib.soname in libraries: sys.exit(f'soname already loaded: {lib.soname}') 217 libraries[lib.soname] = lib
|
/bionic/linker/ |
D | linker_namespaces.h | 58 bool is_accessible(const char* soname) const { in is_accessible() 59 if (soname == nullptr) { in is_accessible() 62 return allow_all_shared_libs_ || shared_lib_sonames_.find(soname) != shared_lib_sonames_.end(); in is_accessible()
|
D | linker_cfi.cpp | 136 const char* soname = si->get_soname(); in find_libdl() local 137 if (soname && strcmp(soname, "libdl.so") == 0) { in find_libdl()
|
D | linker_soinfo.cpp | 693 void soinfo::set_soname(const char* soname) { in set_soname() argument 696 soname_ = soname; in set_soname() 700 soname_ = soname; in set_soname()
|
D | linker.cpp | 179 std::string soname = resolve_soname(name); in maybe_accessible_via_namespace_links() local 181 if (ns_link.is_accessible(soname.c_str())) { in maybe_accessible_via_namespace_links() 1342 const char* soname = si->get_soname(); in find_loaded_library_by_soname() local 1343 if (soname != nullptr && (strcmp(name, soname) == 0)) { in find_loaded_library_by_soname() 1391 std::string soname; in find_library_in_linked_namespace() local 1394 soname = candidate->get_soname(); in find_library_in_linked_namespace() 1396 soname = resolve_soname(task->get_name()); in find_library_in_linked_namespace() 1399 if (!namespace_link.is_accessible(soname.c_str())) { in find_library_in_linked_namespace() 1403 ns->get_name(), task->get_name(), soname.c_str()); in find_library_in_linked_namespace()
|
D | linker_soinfo.h | 317 void set_soname(const char* soname);
|
D | Android.bp | 253 "-Wl,-soname,ld-android.so",
|
/bionic/tests/ |
D | dlfcn_test.cpp | 235 static const char* soname = "libdlext_test_soname.so"; in TEST() local 238 void* handle = dlopen(soname, RTLD_NOW); in TEST() 246 void* handle_soname = dlopen(soname, RTLD_NOW | RTLD_NOLOAD); in TEST() 1554 void validate_compatibility_of_native_library(const std::string& soname, in validate_compatibility_of_native_library() argument 1583 if (soname != "libdl.so") { in validate_compatibility_of_native_library() 1588 void validate_compatibility_of_native_library(const std::string& soname) { in validate_compatibility_of_native_library() argument 1591 std::string path = std::string(ALTERNATE_PATH_TO_SYSTEM_LIB) + soname; in validate_compatibility_of_native_library() 1594 path = std::string(PATH_TO_SYSTEM_LIB) + soname; in validate_compatibility_of_native_library() 1608 validate_compatibility_of_native_library(soname, path, elf); in validate_compatibility_of_native_library()
|
D | elftls_dl_test.cpp | 156 #define LOAD_LIB(soname) ({ \ in TEST() argument 157 auto lib = dlopen(soname, RTLD_LOCAL | RTLD_NOW); \ in TEST()
|
/bionic/tests/libs/ |
D | Android.bp | 199 // Library with soname which does not match filename 205 ldflags: ["-Wl,-soname=libdlext_test_soname.so"], 518 // | |-> libtest_dt_runpath_a.so (soname) 961 ldflags: ["-Wl,-soname,libtest_versioned_lib.so"], 970 ldflags: ["-Wl,-soname,libtest_versioned_lib.so"], 988 ldflags: ["-Wl,-soname,libtest_versioned_otherlib.so"], 1041 ldflags: ["-Wl,-soname=libtest_with_dependency_loop_b.so"],
|
/bionic/ |
D | android-changes-for-ndk-developers.md | 102 ## Correct soname/path handling (Available in API level >= 23) 105 between a library’s soname and its path (public bug 107 is the first release where search by soname is implemented. Earlier 108 releases would assume that the basename of the library was the soname, 335 0x0000000e (SONAME) Library soname: [libWithSoName.so] 346 the -soname linker option).
|