/bionic/libm/ |
D | freebsd-compat.h | 23 #define __weak_reference(sym,alias) \ argument 25 __asm__(".equ " #alias ", " #sym) 27 #define __strong_reference(sym,aliassym) \ argument 28 extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym))) 30 #define __warn_references(sym,msg) /* ignored */ argument
|
/bionic/libc/upstream-openbsd/android/include/ |
D | openbsd-compat.h | 46 #define DEF_STRONG(sym) argument 47 #define DEF_WEAK(sym) argument 51 #define __warn_references(sym,msg) argument
|
/bionic/linker/ |
D | linker_mips.cpp | 66 ElfW(Word) sym = ELFW(R_SYM)(rel->r_info); in relocate() 80 if (sym != 0) { in relocate() 81 sym_name = get_string(symtab_[sym].st_name); in relocate() 84 if (!lookup_version_info(version_tracker, sym, sym_name, &vi)) { in relocate() 160 for (ElfW(Word) sym = mips_gotsym_; sym < mips_symtabno_; sym++, got++) { in mips_relocate_got() 162 const ElfW(Sym)* local_sym = symtab_ + sym; in mips_relocate_got() 172 if (!lookup_version_info(version_tracker, sym, sym_name, &vi)) { in mips_relocate_got()
|
D | linker_soinfo.cpp | 299 static bool symbol_matches_soaddr(const ElfW(Sym)* sym, ElfW(Addr) soaddr) { in symbol_matches_soaddr() argument 303 return sym->st_shndx != SHN_UNDEF && in symbol_matches_soaddr() 304 ELF_ST_TYPE(sym->st_info) != STT_TLS && in symbol_matches_soaddr() 305 soaddr >= sym->st_value && in symbol_matches_soaddr() 306 soaddr < sym->st_value + sym->st_size; in symbol_matches_soaddr() 320 ElfW(Sym)* sym = symtab_ + n; in ElfW() 321 if (symbol_matches_soaddr(sym, soaddr)) { in ElfW() 322 return sym; in ElfW() 336 ElfW(Sym)* sym = symtab_ + i; in ElfW() 337 if (symbol_matches_soaddr(sym, soaddr)) { in ElfW() [all …]
|
D | linker_cfi.cpp | 145 const ElfW(Sym) * sym; in soinfo_find_symbol() 146 if (si->find_symbol_by_name(name, nullptr, &sym) && sym) { in soinfo_find_symbol() 147 return si->resolve_symbol_address(sym); in soinfo_find_symbol()
|
D | linker.cpp | 2309 ElfW(Sym)* sym = si->find_symbol_by_address(addr); in do_dladdr() 2310 if (sym != nullptr) { in do_dladdr() 2311 info->dli_sname = si->get_string(sym->st_name); in do_dladdr() 2312 info->dli_saddr = reinterpret_cast<void*>(si->resolve_symbol_address(sym)); in do_dladdr() 2345 const ElfW(Sym)* sym = nullptr; in do_dlsym() 2381 sym = dlsym_linear_lookup(ns, sym_name, vi, &found, caller, handle); in do_dlsym() 2387 sym = dlsym_handle_lookup(si, &found, sym_name, vi); in do_dlsym() 2390 if (sym != nullptr) { in do_dlsym() 2391 uint32_t bind = ELF_ST_BIND(sym->st_info); in do_dlsym() 2392 uint32_t type = ELF_ST_TYPE(sym->st_info); in do_dlsym() [all …]
|
D | linker_soinfo.h | 314 bool lookup_version_info(const VersionTracker& version_tracker, ElfW(Word) sym,
|
/bionic/tests/ |
D | atexit_test.cpp | 45 void* sym = dlsym(handle, "register_atexit"); in TEST() local 46 ASSERT_TRUE(sym != nullptr); in TEST() 47 …reinterpret_cast<void (*)(std::string*, bool*, bool*)>(sym)(&atexit_call_sequence, &valid_this_in_… in TEST()
|
D | dlfcn_test.cpp | 94 void* sym = dlsym(self, "DlSymTestFunction"); in TEST() local 95 ASSERT_TRUE(sym != nullptr); in TEST() 97 void (*function)() = reinterpret_cast<void(*)()>(sym); in TEST() 189 void* sym = dlsym(handle, "getRandomNumber"); in TEST() local 190 ASSERT_TRUE(sym == nullptr); in TEST() 193 sym = dlsym(handle, "DlSymTestFunction"); in TEST() 194 ASSERT_TRUE(sym == nullptr); in TEST() 203 void* sym = dlsym(handle, ""); in TEST() local 204 ASSERT_TRUE(sym == nullptr); in TEST() 214 void* sym = dlsym(handle, "getRandomNumber"); in TEST() local [all …]
|
D | dlext_test.cpp | 182 void* sym = dlsym(RTLD_DEFAULT, "this_symbol_does_not_exist___"); in TEST_F() local 183 ASSERT_TRUE(sym == nullptr); in TEST_F()
|
/bionic/libc/upstream-freebsd/android/include/ |
D | freebsd-compat.h | 38 #define __weak_reference(sym,alias) argument
|
/bionic/libc/include/ |
D | elf.h | 299 #define ELF32_R_INFO(sym, type) ((((Elf32_Word)sym) << 8) | ((type) & 0xff)) argument 300 #define ELF64_R_INFO(sym, type) ((((Elf64_Xword)sym) << 32) | ((type) & 0xffffffff)) argument
|
/bionic/libc/include/sys/ |
D | cdefs.h | 49 #define __strong_alias(alias, sym) \ argument 51 #alias " = " #sym);
|