Lines Matching refs:ElfW
47 static bool is_tls_reloc(ElfW(Word) type) { in is_tls_reloc()
68 ElfW(Sym)* si_symtab = nullptr;
74 ElfW(Word) cache_sym_val = 0;
76 const ElfW(Sym)* cache_sym = nullptr;
84 const char* get_string(ElfW(Word) index) { in get_string()
96 soinfo** found_in, const ElfW(Sym)** sym) { in lookup_symbol()
108 …const ElfW(Sym)* local_sym = soinfo_do_lookup(sym_name, vi, &local_found_in, relocator.lookup_list… in lookup_symbol() local
168 const ElfW(Sym)* sym = nullptr; in process_relocation_impl() local
170 ElfW(Addr) sym_addr = 0; in process_relocation_impl()
225 auto get_addend_rel = [&]() -> ElfW(Addr) { return reloc.r_addend; }; in process_relocation_impl()
226 auto get_addend_norel = [&]() -> ElfW(Addr) { return reloc.r_addend; }; in process_relocation_impl()
228 auto get_addend_rel = [&]() -> ElfW(Addr) { return *static_cast<ElfW(Addr)*>(rel_target); }; in process_relocation_impl()
229 auto get_addend_norel = [&]() -> ElfW(Addr) { return 0; }; in process_relocation_impl()
284 sym_addr = reinterpret_cast<ElfW(Addr)>(rel_target); in process_relocation_impl()
288 sym_addr = reinterpret_cast<ElfW(Addr)>(rel_target); in process_relocation_impl()
299 const ElfW(Addr) result = sym_addr + get_addend_norel(); in process_relocation_impl() local
302 *static_cast<ElfW(Addr)*>(rel_target) = result; in process_relocation_impl()
313 const ElfW(Addr) result = sym_addr + get_addend_rel(); in process_relocation_impl() local
316 *static_cast<ElfW(Addr)*>(rel_target) = result; in process_relocation_impl()
323 const ElfW(Addr) result = sym_addr + get_addend_norel(); in process_relocation_impl() local
326 *static_cast<ElfW(Addr)*>(rel_target) = result; in process_relocation_impl()
332 const ElfW(Addr) result = relocator.si->load_bias + get_addend_rel(); in process_relocation_impl() local
335 *static_cast<ElfW(Addr)*>(rel_target) = result; in process_relocation_impl()
354 const ElfW(Addr) ifunc_addr = relocator.si->load_bias + get_addend_rel(); in process_relocation_impl() local
358 const ElfW(Addr) result = call_ifunc_resolver(ifunc_addr); in process_relocation_impl() local
360 *static_cast<ElfW(Addr)*>(rel_target) = result; in process_relocation_impl()
377 ElfW(Addr) tpoff = 0; in process_relocation_impl()
395 *static_cast<ElfW(Addr)*>(rel_target) = tpoff; in process_relocation_impl()
410 *static_cast<ElfW(Addr)*>(rel_target) = module_id; in process_relocation_impl()
416 const ElfW(Addr) result = sym_addr + get_addend_rel(); in process_relocation_impl() local
419 *static_cast<ElfW(Addr)*>(rel_target) = result; in process_relocation_impl()
429 ElfW(Addr) addend = reloc.r_addend; in process_relocation_impl()
482 const ElfW(Addr) target = sym_addr + reloc.r_addend; in process_relocation_impl() local
483 const ElfW(Addr) base = reinterpret_cast<ElfW(Addr)>(rel_target); in process_relocation_impl() local
495 const ElfW(Addr) target = sym_addr + get_addend_rel(); in process_relocation_impl() local
496 const ElfW(Addr) base = reinterpret_cast<ElfW(Addr)>(rel_target); in process_relocation_impl() local
497 const ElfW(Addr) result = target - base; in process_relocation_impl() local
501 *static_cast<ElfW(Addr)*>(rel_target) = result; in process_relocation_impl()