Lines Matching refs:ElfW
64 for (ElfW(Half) i = 0; i < info->dlpi_phnum; ++i) { in TEST()
65 const ElfW(Phdr)* phdr = reinterpret_cast<const ElfW(Phdr)*>(&info->dlpi_phdr[i]); in TEST() local
67 const ElfW(Ehdr)* ehdr = reinterpret_cast<const ElfW(Ehdr)*>(info->dlpi_addr + in TEST() local
131 const ElfW(Phdr)* table;
136 static ElfW(Addr) find_exe_load_bias(const ProgHdr& phdr) { in find_exe_load_bias()
139 return reinterpret_cast<ElfW(Addr)>(phdr.table) - phdr.table[i].p_vaddr; in find_exe_load_bias()
146 static ElfW(Dyn)* find_dynamic(const ProgHdr& phdr, ElfW(Addr) load_bias) { in ElfW() function
149 return reinterpret_cast<ElfW(Dyn)*>(phdr.table[i].p_vaddr + load_bias); in ElfW()
156 static r_debug* find_exe_r_debug(ElfW(Dyn)* dynamic) { in find_exe_r_debug()
157 for (ElfW(Dyn)* d = dynamic; d->d_tag != DT_NULL; ++d) { in find_exe_r_debug()
173 .table = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)), in TEST()
177 ElfW(Addr) exe_load_bias = find_exe_load_bias(exe_phdr); in TEST()
179 ElfW(Dyn)* exe_dynamic = find_dynamic(exe_phdr, exe_load_bias); in TEST()
188 ElfW(Dyn)* dynamic; in TEST()
191 std::unordered_map<ElfW(Addr), DlIterateInfo> dl_iter_mods; in TEST()