Lines Matching refs:d
1067 for (const ElfW(Dyn)* d = elf_reader.dynamic(); d->d_tag != DT_NULL; ++d) { in for_each_dt_needed()
1068 if (d->d_tag == DT_NEEDED) { in for_each_dt_needed()
1069 action(fix_dt_needed(elf_reader.get_string(d->d_un.d_val), elf_reader.name())); in for_each_dt_needed()
1250 for (const ElfW(Dyn)* d = elf_reader.dynamic(); d->d_tag != DT_NULL; ++d) { in load_library()
1251 if (d->d_tag == DT_RUNPATH) { in load_library()
1252 si->set_dt_runpath(elf_reader.get_string(d->d_un.d_val)); in load_library()
1254 if (d->d_tag == DT_SONAME) { in load_library()
1255 si->set_soname(elf_reader.get_string(d->d_un.d_val)); in load_library()
2819 for (ElfW(Dyn)* d = dynamic; d->d_tag != DT_NULL; ++d) { in prelink_image()
2821 d, reinterpret_cast<void*>(d->d_tag), reinterpret_cast<void*>(d->d_un.d_val)); in prelink_image()
2822 switch (d->d_tag) { in prelink_image()
2828 nbucket_ = reinterpret_cast<uint32_t*>(load_bias + d->d_un.d_ptr)[0]; in prelink_image()
2829 nchain_ = reinterpret_cast<uint32_t*>(load_bias + d->d_un.d_ptr)[1]; in prelink_image()
2830 bucket_ = reinterpret_cast<uint32_t*>(load_bias + d->d_un.d_ptr + 8); in prelink_image()
2831 chain_ = reinterpret_cast<uint32_t*>(load_bias + d->d_un.d_ptr + 8 + nbucket_ * 4); in prelink_image()
2835 gnu_nbucket_ = reinterpret_cast<uint32_t*>(load_bias + d->d_un.d_ptr)[0]; in prelink_image()
2837 gnu_maskwords_ = reinterpret_cast<uint32_t*>(load_bias + d->d_un.d_ptr)[2]; in prelink_image()
2838 gnu_shift2_ = reinterpret_cast<uint32_t*>(load_bias + d->d_un.d_ptr)[3]; in prelink_image()
2840 gnu_bloom_filter_ = reinterpret_cast<ElfW(Addr)*>(load_bias + d->d_un.d_ptr + 16); in prelink_image()
2844 reinterpret_cast<uint32_t*>(load_bias + d->d_un.d_ptr)[1]; in prelink_image()
2857 strtab_ = reinterpret_cast<const char*>(load_bias + d->d_un.d_ptr); in prelink_image()
2861 strtab_size_ = d->d_un.d_val; 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()
2871 static_cast<size_t>(d->d_un.d_val), get_realpath()); in prelink_image()
2878 if (d->d_un.d_val != DT_RELA) { in prelink_image()
2883 if (d->d_un.d_val != DT_REL) { 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()
2914 d->d_un.d_val = reinterpret_cast<uintptr_t>(&_r_debug); 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()
2927 android_relocs_ = reinterpret_cast<uint8_t*>(load_bias + d->d_un.d_ptr); in prelink_image()
2931 android_relocs_size_ = d->d_un.d_val; in prelink_image()
2943 if (d->d_un.d_val != sizeof(ElfW(Rela))) { in prelink_image()
2944 DL_ERR("invalid DT_RELAENT: %zd", static_cast<size_t>(d->d_un.d_val)); 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()
2972 DL_ERR("invalid DT_RELENT: %zd", static_cast<size_t>(d->d_un.d_val)); in prelink_image()
2978 android_relocs_ = reinterpret_cast<uint8_t*>(load_bias + d->d_un.d_ptr); in prelink_image()
2982 android_relocs_size_ = d->d_un.d_val; 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()
3023 DL_ERR("invalid DT_RELRENT: %zd", static_cast<size_t>(d->d_un.d_val)); in prelink_image()
3034 init_func_ = reinterpret_cast<linker_ctor_function_t>(load_bias + d->d_un.d_ptr); in prelink_image()
3039 fini_func_ = reinterpret_cast<linker_dtor_function_t>(load_bias + d->d_un.d_ptr); in prelink_image()
3044 init_array_ = reinterpret_cast<linker_ctor_function_t*>(load_bias + d->d_un.d_ptr); in prelink_image()
3049 init_array_count_ = static_cast<uint32_t>(d->d_un.d_val) / sizeof(ElfW(Addr)); in prelink_image()
3053 fini_array_ = reinterpret_cast<linker_dtor_function_t*>(load_bias + d->d_un.d_ptr); in prelink_image()
3058 fini_array_count_ = static_cast<uint32_t>(d->d_un.d_val) / sizeof(ElfW(Addr)); in prelink_image()
3062 preinit_array_ = reinterpret_cast<linker_ctor_function_t*>(load_bias + d->d_un.d_ptr); in prelink_image()
3067 preinit_array_count_ = static_cast<uint32_t>(d->d_un.d_val) / sizeof(ElfW(Addr)); in prelink_image()
3088 if (d->d_un.d_val & DF_TEXTREL) { in prelink_image()
3096 if (d->d_un.d_val & DF_SYMBOLIC) { in prelink_image()
3102 set_dt_flags_1(d->d_un.d_val); in prelink_image()
3104 if ((d->d_un.d_val & ~SUPPORTED_DT_FLAGS_1) != 0) { in prelink_image()
3107 get_realpath(), reinterpret_cast<void*>(d->d_un.d_val)); in prelink_image()
3116 versym_ = reinterpret_cast<ElfW(Versym)*>(load_bias + d->d_un.d_ptr); in prelink_image()
3120 verdef_ptr_ = load_bias + d->d_un.d_ptr; in prelink_image()
3123 verdef_cnt_ = d->d_un.d_val; in prelink_image()
3127 verneed_ptr_ = load_bias + d->d_un.d_ptr; in prelink_image()
3131 verneed_cnt_ = d->d_un.d_val; in prelink_image()
3147 if (d->d_tag == DT_RPATH) { in prelink_image()
3149 } else if (d->d_tag == DT_ENCODING) { in prelink_image()
3151 } else if (d->d_tag >= DT_LOOS && d->d_tag <= DT_HIOS) { in prelink_image()
3153 } else if (d->d_tag >= DT_LOPROC && d->d_tag <= DT_HIPROC) { in prelink_image()
3161 reinterpret_cast<void*>(d->d_tag), in prelink_image()
3162 reinterpret_cast<void*>(d->d_un.d_val)); in prelink_image()
3191 for (ElfW(Dyn)* d = dynamic; d->d_tag != DT_NULL; ++d) { in prelink_image()
3192 switch (d->d_tag) { in prelink_image()
3194 set_soname(get_string(d->d_un.d_val)); in prelink_image()
3197 set_dt_runpath(get_string(d->d_un.d_val)); in prelink_image()