Lines Matching refs:phdr
65 const ElfW(Phdr)* phdr = reinterpret_cast<const ElfW(Phdr)*>(&info->dlpi_phdr[i]); in TEST()
66 if (phdr->p_type == PT_LOAD) { in TEST()
68 phdr->p_vaddr); in TEST()
136 static ElfW(Addr) find_exe_load_bias(const ProgHdr& phdr) { in find_exe_load_bias() argument
137 for (size_t i = 0; i < phdr.size; ++i) { in find_exe_load_bias()
138 if (phdr.table[i].p_type == PT_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()
147 for (size_t i = 0; i < phdr.size; ++i) { in ElfW()
148 if (phdr.table[i].p_type == PT_DYNAMIC) { in ElfW()
149 return reinterpret_cast<ElfW(Dyn)*>(phdr.table[i].p_vaddr + load_bias); in ElfW()