Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 15 of 15) sorted by relevance

/bionic/benchmarks/linker_relocation/include/
Dlinker_reloc_bench_asm.h33 #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/libm/
Dfreebsd-compat.h23 #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/benchmarks/linker_relocation/regen/
Dcommon_types.py117 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()}
Dgen_bench.py134 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/tests/
Ddlfcn_test.cpp94 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 …]
Datexit_test.cpp45 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()
Ddlext_test.cpp179 void* sym = dlsym(RTLD_DEFAULT, "this_symbol_does_not_exist___"); in TEST_F() local
180 ASSERT_TRUE(sym == nullptr); in TEST_F()
/bionic/linker/
Dlinker_soinfo.cpp139 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 …]
Dlinker_relocate.cpp96 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 …]
Dlinker_cfi.cpp146 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()
Dlinker.cpp2217 ElfW(Sym)* sym = si->find_symbol_by_address(addr); in do_dladdr()
2218 if (sym != nullptr) { in do_dladdr()
2219 info->dli_sname = si->get_string(sym->st_name); in do_dladdr()
2220 info->dli_saddr = reinterpret_cast<void*>(si->resolve_symbol_address(sym)); in do_dladdr()
2253 const ElfW(Sym)* sym = nullptr; in do_dlsym()
2289 sym = dlsym_linear_lookup(ns, sym_name, vi, &found, caller, handle); in do_dlsym()
2295 sym = dlsym_handle_lookup(si, &found, sym_name, vi); in do_dlsym()
2298 if (sym != nullptr) { in do_dlsym()
2299 uint32_t bind = ELF_ST_BIND(sym->st_info); in do_dlsym()
2300 uint32_t type = ELF_ST_TYPE(sym->st_info); in do_dlsym()
[all …]
Dlinker_soinfo.h358 bool lookup_version_info(const VersionTracker& version_tracker, ElfW(Word) sym,
/bionic/libc/upstream-openbsd/android/include/
Dopenbsd-compat.h34 #define DEF_STRONG(sym) argument
35 #define DEF_WEAK(sym) argument
39 #define __warn_references(sym,msg) argument
/bionic/libc/include/
Delf.h287 #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/
Dcdefs.h53 #define __strong_alias(alias, sym) \ argument
55 #alias " = " #sym);