/bionic/benchmarks/linker_relocation/include/ |
D | linker_reloc_bench_asm.h | 33 #define GOT_RELOC(sym) .long sym(GOT_PREL) argument 34 #define CALL(sym) bl sym argument 40 #define GOT_RELOC(sym) adrp x1, :got:sym argument 41 #define CALL(sym) bl sym argument 47 #define GOT_RELOC(sym) .long sym@got argument 48 #define CALL(sym) call sym@PLT argument 54 #define GOT_RELOC(sym) .quad sym@got argument 55 #define CALL(sym) call sym@PLT argument
|
/bionic/benchmarks/linker_relocation/regen/ |
D | common_types.py | 117 result['jump_slots'] = [sym.to_json() for sym in self.jump_slots] 118 result['got'] = [sym.to_json() for sym in self.got] 119 result['symbolic'] = [(off, sym.to_json()) for (off, sym) in self.symbolic] 126 result.jump_slots = [SymbolRef.from_json(sym) for sym in obj['jump_slots']] 127 result.got = [SymbolRef.from_json(sym) for sym in obj['got']] 128 result.symbolic = [(off, SymbolRef.from_json(sym)) for (off, sym) in obj['symbolic']] 143 result['syms'] = {name: sym.to_json() for name, sym in self.syms.items()} 152 result.syms = {name: DynSymbol.from_json(sym) for name, sym in obj['syms'].items()}
|
D | gen_bench.py | 134 for sym in lib.syms.values(): 135 if not sym.defined: continue 136 defs.setdefault(sym.name, lib) 145 for sym in rels.got + rels.jump_slots + [sym for off, sym in rels.symbolic]: 146 if sym.name not in defs: 147 if sym.is_weak: 192 sym = trans_sym(d.name, None) 193 if sym is None: continue 206 versions.setdefault(d.ver_name, []).append(sym) 210 sym = trans_sym(r.name, r.ver) [all …]
|
/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/tests/ |
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 | 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 | dlext_test.cpp | 179 void* sym = dlsym(RTLD_DEFAULT, "this_symbol_does_not_exist___"); in TEST_F() local 180 ASSERT_TRUE(sym == nullptr); in TEST_F()
|
/bionic/linker/ |
D | linker_soinfo.cpp | 139 if (const ElfW(Sym)* sym = lib->si_->find_symbol_by_name(elf_symbol_name, vi)) { in ElfW() 141 return sym; in ElfW() 174 const ElfW(Sym)* sym = nullptr; in ElfW() 177 sym = lib->symtab_ + sym_idx; in ElfW() 185 static_cast<size_t>(sym->st_name) + name_len + 1 <= lib->strtab_size_ && in ElfW() 186 memcmp(lib->strtab_ + sym->st_name, name, name_len + 1) == 0 && in ElfW() 187 is_symbol_global_and_defined(lib->si_, sym)) { in ElfW() 191 name, lib->si_->get_realpath(), reinterpret_cast<void*>(sym->st_value), in ElfW() 192 static_cast<size_t>(sym->st_size)); in ElfW() 194 return sym; in ElfW() [all …]
|
D | linker_relocate.cpp | 96 soinfo** found_in, const ElfW(Sym)** sym) { in lookup_symbol() argument 99 *sym = relocator.cache_sym; in lookup_symbol() 114 *sym = local_sym; in lookup_symbol() 117 if (*sym == nullptr) { in lookup_symbol() 168 const ElfW(Sym)* sym = nullptr; in process_relocation_impl() 244 sym = &relocator.si_symtab[r_sym]; in process_relocation_impl() 246 sym_name, relocator.si->get_realpath(), ELF_ST_TYPE(sym->st_info), r_type); in process_relocation_impl() 248 } else if (!lookup_symbol<IsGeneral>(relocator, r_sym, sym_name, &found_in, &sym)) { in process_relocation_impl() 257 if (sym != nullptr) { in process_relocation_impl() 258 if (ELF_ST_TYPE(sym->st_info) != STT_TLS) { in process_relocation_impl() [all …]
|
D | linker_cfi.cpp | 146 if (const ElfW(Sym)* sym = si->find_symbol_by_name(name, nullptr)) { in soinfo_find_symbol() 147 return si->resolve_symbol_address(sym); in soinfo_find_symbol()
|
D | linker.cpp | 2196 ElfW(Sym)* sym = si->find_symbol_by_address(addr); in do_dladdr() 2197 if (sym != nullptr) { in do_dladdr() 2198 info->dli_sname = si->get_string(sym->st_name); in do_dladdr() 2199 info->dli_saddr = reinterpret_cast<void*>(si->resolve_symbol_address(sym)); in do_dladdr() 2232 const ElfW(Sym)* sym = nullptr; in do_dlsym() 2268 sym = dlsym_linear_lookup(ns, sym_name, vi, &found, caller, handle); in do_dlsym() 2274 sym = dlsym_handle_lookup(si, &found, sym_name, vi); in do_dlsym() 2277 if (sym != nullptr) { in do_dlsym() 2278 uint32_t bind = ELF_ST_BIND(sym->st_info); in do_dlsym() 2279 uint32_t type = ELF_ST_TYPE(sym->st_info); in do_dlsym() [all …]
|
D | linker_soinfo.h | 364 bool lookup_version_info(const VersionTracker& version_tracker, ElfW(Word) sym,
|
/bionic/libc/upstream-openbsd/android/include/ |
D | openbsd-compat.h | 34 #define DEF_STRONG(sym) argument 35 #define DEF_WEAK(sym) argument 39 #define __warn_references(sym,msg) argument
|
/bionic/libc/include/ |
D | elf.h | 287 #define ELF32_R_INFO(sym, type) ((((Elf32_Word)sym) << 8) | ((type) & 0xff)) argument 288 #define ELF64_R_INFO(sym, type) ((((Elf64_Xword)sym) << 32) | ((type) & 0xffffffff)) argument
|
/bionic/libc/include/sys/ |
D | cdefs.h | 53 #define __strong_alias(alias, sym) \ argument 55 #alias " = " #sym);
|