/bionic/libm/ |
D | freebsd-compat.h | 22 #define __weak_reference(sym,alias) \ argument 24 __asm__(".equ " #alias ", " #sym) 26 #define __strong_reference(sym,aliassym) \ argument 27 extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym))) 29 #define __warn_references(sym,msg) /* ignored */ argument
|
/bionic/libc/upstream-openbsd/android/include/ |
D | openbsd-compat.h | 41 #define DEF_STRONG(sym) argument 42 #define DEF_WEAK(sym) argument 45 #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() 161 for (ElfW(Word) sym = mips_gotsym_; sym < mips_symtabno_; sym++, got++) { in mips_relocate_got() 163 const ElfW(Sym)* local_sym = symtab_ + sym; in mips_relocate_got() 173 if (!lookup_version_info(version_tracker, sym, sym_name, &vi)) { in mips_relocate_got()
|
D | linker_soinfo.cpp | 292 static bool symbol_matches_soaddr(const ElfW(Sym)* sym, ElfW(Addr) soaddr) { in symbol_matches_soaddr() argument 293 return sym->st_shndx != SHN_UNDEF && in symbol_matches_soaddr() 294 soaddr >= sym->st_value && in symbol_matches_soaddr() 295 soaddr < sym->st_value + sym->st_size; in symbol_matches_soaddr() 309 ElfW(Sym)* sym = symtab_ + n; in ElfW() 310 if (symbol_matches_soaddr(sym, soaddr)) { in ElfW() 311 return sym; in ElfW() 325 ElfW(Sym)* sym = symtab_ + i; in ElfW() 326 if (symbol_matches_soaddr(sym, soaddr)) { in ElfW() 327 return sym; in ElfW()
|
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 | 2046 ElfW(Sym)* sym = si->find_symbol_by_address(addr); in do_dladdr() 2047 if (sym != nullptr) { in do_dladdr() 2048 info->dli_sname = si->get_string(sym->st_name); in do_dladdr() 2049 info->dli_saddr = reinterpret_cast<void*>(si->resolve_symbol_address(sym)); in do_dladdr() 2082 const ElfW(Sym)* sym = nullptr; in do_dlsym() 2118 sym = dlsym_linear_lookup(ns, sym_name, vi, &found, caller, handle); in do_dlsym() 2124 sym = dlsym_handle_lookup(si, &found, sym_name, vi); in do_dlsym() 2127 if (sym != nullptr) { in do_dlsym() 2128 uint32_t bind = ELF_ST_BIND(sym->st_info); in do_dlsym() 2130 if ((bind == STB_GLOBAL || bind == STB_WEAK) && sym->st_shndx != 0) { in do_dlsym() [all …]
|
D | linker_soinfo.h | 281 bool lookup_version_info(const VersionTracker& version_tracker, ElfW(Word) sym,
|
/bionic/tests/ |
D | dlfcn_test.cpp | 82 void* sym = dlsym(self, "DlSymTestFunction"); in TEST() local 83 ASSERT_TRUE(sym != nullptr); in TEST() 85 void (*function)() = reinterpret_cast<void(*)()>(sym); in TEST() 177 void* sym = dlsym(handle, "getRandomNumber"); in TEST() local 178 ASSERT_TRUE(sym == nullptr); in TEST() 181 sym = dlsym(handle, "DlSymTestFunction"); in TEST() 182 ASSERT_TRUE(sym == nullptr); in TEST() 191 void* sym = dlsym(handle, ""); in TEST() local 192 ASSERT_TRUE(sym == nullptr); in TEST() 202 void* sym = dlsym(handle, "getRandomNumber"); in TEST() local [all …]
|
D | atexit_test.cpp | 55 void* sym = dlsym(handle, "register_atexit"); in TEST() local 56 ASSERT_TRUE(sym != nullptr); in TEST() 57 …reinterpret_cast<void (*)(std::string*, bool*, bool*)>(sym)(&atexit_call_sequence, &valid_this_in_… in TEST()
|
D | dlext_test.cpp | 180 void* sym = dlsym(RTLD_DEFAULT, "this_symbol_does_not_exist___"); in TEST_F() local 181 ASSERT_TRUE(sym == nullptr); in TEST_F()
|
/bionic/libc/include/ |
D | elf.h | 43 #define ELF32_R_INFO(sym, type) ((((Elf32_Word)sym) << 8) | ((type) & 0xff)) argument 44 #define ELF64_R_INFO(sym, type) ((((Elf64_Xword)sym) << 32) | ((type) & 0xffffffff)) argument
|
/bionic/libc/upstream-freebsd/android/include/ |
D | freebsd-compat.h | 34 #define __weak_reference(sym,alias) argument
|
/bionic/libc/include/sys/ |
D | cdefs.h | 59 #define __strong_alias(alias, sym) \ argument 61 #alias " = " #sym);
|