Lines Matching refs:ElfW

699 static const ElfW(Sym)* dlsym_handle_lookup_impl(android_namespace_t* ns,  in ElfW()  function
705 const ElfW(Sym)* result = nullptr; in ElfW() local
735 static const ElfW(Sym)* dlsym_linear_lookup(android_namespace_t* ns, in ElfW() function
756 const ElfW(Sym)* s = nullptr; in ElfW() local
795 static const ElfW(Sym)* dlsym_handle_lookup(soinfo* si, in ElfW() function
821 ElfW(Addr) address = reinterpret_cast<ElfW(Addr)>(untag_address(p)); in find_containing_library()
826 ElfW(Addr) vaddr = address - si->load_bias; in find_containing_library()
828 const ElfW(Phdr)* phdr = &si->phdr[i]; in find_containing_library() local
1067 for (const ElfW(Dyn)* d = elf_reader.dynamic(); d->d_tag != DT_NULL; ++d) { in for_each_dt_needed() local
1250 for (const ElfW(Dyn)* d = elf_reader.dynamic(); d->d_tag != DT_NULL; ++d) { in load_library() local
2196 ElfW(Sym)* sym = si->find_symbol_by_address(addr); in do_dladdr()
2232 const ElfW(Sym)* sym = nullptr; in do_dlsym() local
2520 ElfW(Addr) call_ifunc_resolver(ElfW(Addr) resolver_addr) { in call_ifunc_resolver()
2523 ElfW(Addr) ifunc_addr = __bionic_call_ifunc_resolver(resolver_addr); in call_ifunc_resolver()
2530 const version_info* VersionTracker::get_version_info(ElfW(Versym) source_symver) const { in get_version_info()
2541 ElfW(Word) elf_hash, in add_version_info()
2563 const ElfW(Verneed)* verneed = reinterpret_cast<ElfW(Verneed)*>(verneed_ptr + offset); in init_verneed() local
2585 const ElfW(Vernaux)* vernaux = reinterpret_cast<ElfW(Vernaux)*>(verneed_ptr + vernaux_offset); in init_verneed() local
2588 const ElfW(Word) elf_hash = vernaux->vna_hash; in init_verneed() local
2590 ElfW(Half) source_index = vernaux->vna_other; in init_verneed()
2614 const ElfW(Verdef)* verdef = reinterpret_cast<ElfW(Verdef)*>(verdef_ptr + offset); in for_each_verdef() local
2637 const ElfW(Verdaux)* verdaux = reinterpret_cast<ElfW(Verdaux)*>(verdef_ptr + verdaux_offset); in for_each_verdef() local
2647 ElfW(Versym) find_verdef_version_index(const soinfo* si, const version_info* vi) { in find_verdef_version_index()
2652 ElfW(Versym) result = kVersymGlobal; in find_verdef_version_index()
2655 [&](size_t, const ElfW(Verdef)* verdef, const ElfW(Verdaux)* verdaux) { in find_verdef_version_index()
2676 [&](size_t, const ElfW(Verdef)*, const ElfW(Verdaux)*) { in validate_verdef_section()
2683 [&](size_t, const ElfW(Verdef)* verdef, const ElfW(Verdaux)* verdaux) { in init_verdef()
2703 bool soinfo::lookup_version_info(const VersionTracker& version_tracker, ElfW(Word) sym, in lookup_version_info()
2705 const ElfW(Versym)* sym_ver_ptr = get_versym(sym); in lookup_version_info() local
2706 ElfW(Versym) sym_ver = sym_ver_ptr == nullptr ? 0 : *sym_ver_ptr; in lookup_version_info()
2724 void soinfo::apply_relr_reloc(ElfW(Addr) offset) { in apply_relr_reloc()
2725 ElfW(Addr) address = offset + load_bias; in apply_relr_reloc()
2726 *reinterpret_cast<ElfW(Addr)*>(address) += load_bias; in apply_relr_reloc()
2733 ElfW(Relr)* begin = relr_; in relocate_relr()
2734 ElfW(Relr)* end = relr_ + relr_count_; in relocate_relr()
2735 constexpr size_t wordsize = sizeof(ElfW(Addr)); in relocate_relr()
2737 ElfW(Addr) base = 0; in relocate_relr()
2738 for (ElfW(Relr)* current = begin; current < end; ++current) { in relocate_relr()
2739 ElfW(Relr) entry = *current; in relocate_relr()
2740 ElfW(Addr) offset; in relocate_relr()
2744 offset = static_cast<ElfW(Addr)>(entry); in relocate_relr()
2774 ElfW(Word) dynamic_flags = 0; in prelink_image()
2819 for (ElfW(Dyn)* d = dynamic; d->d_tag != DT_NULL; ++d) { in prelink_image()
2840 gnu_bloom_filter_ = reinterpret_cast<ElfW(Addr)*>(load_bias + d->d_un.d_ptr + 16); in prelink_image()
2865 symtab_ = reinterpret_cast<ElfW(Sym)*>(load_bias + d->d_un.d_ptr); in prelink_image()
2869 if (d->d_un.d_val != sizeof(ElfW(Sym))) { in prelink_image()
2892 plt_rela_ = reinterpret_cast<ElfW(Rela)*>(load_bias + d->d_un.d_ptr); in prelink_image()
2894 plt_rel_ = reinterpret_cast<ElfW(Rel)*>(load_bias + d->d_un.d_ptr); in prelink_image()
2900 plt_rela_count_ = d->d_un.d_val / sizeof(ElfW(Rela)); in prelink_image()
2902 plt_rel_count_ = d->d_un.d_val / sizeof(ElfW(Rel)); in prelink_image()
2919 rela_ = reinterpret_cast<ElfW(Rela)*>(load_bias + d->d_un.d_ptr); in prelink_image()
2923 rela_count_ = d->d_un.d_val / sizeof(ElfW(Rela)); in prelink_image()
2943 if (d->d_un.d_val != sizeof(ElfW(Rela))) { in prelink_image()
2963 rel_ = reinterpret_cast<ElfW(Rel)*>(load_bias + d->d_un.d_ptr); in prelink_image()
2967 rel_count_ = d->d_un.d_val / sizeof(ElfW(Rel)); in prelink_image()
2971 if (d->d_un.d_val != sizeof(ElfW(Rel))) { in prelink_image()
3012 relr_ = reinterpret_cast<ElfW(Relr)*>(load_bias + d->d_un.d_ptr); in prelink_image()
3017 relr_count_ = d->d_un.d_val / sizeof(ElfW(Relr)); in prelink_image()
3022 if (d->d_un.d_val != sizeof(ElfW(Relr))) { in prelink_image()
3049 init_array_count_ = static_cast<uint32_t>(d->d_un.d_val) / sizeof(ElfW(Addr)); in prelink_image()
3058 fini_array_count_ = static_cast<uint32_t>(d->d_un.d_val) / sizeof(ElfW(Addr)); in prelink_image()
3067 preinit_array_count_ = static_cast<uint32_t>(d->d_un.d_val) / sizeof(ElfW(Addr)); in prelink_image()
3116 versym_ = reinterpret_cast<ElfW(Versym)*>(load_bias + d->d_un.d_ptr); in prelink_image()
3191 for (ElfW(Dyn)* d = dynamic; d->d_tag != DT_NULL; ++d) { in prelink_image()