Home | History | Annotate | Download | only in tests

Lines Matching refs:Phdr

64         const ElfW(Phdr)* phdr = reinterpret_cast<const ElfW(Phdr)*>(&info->dlpi_phdr[i]);
65 if (phdr->p_type == PT_LOAD) {
67 phdr->p_vaddr);
84 const ElfW(Phdr)* table;
89 static ElfW(Addr) find_exe_load_bias(const ProgHdr& phdr) {
90 for (size_t i = 0; i < phdr.size; ++i) {
91 if (phdr.table[i].p_type == PT_PHDR) {
92 return reinterpret_cast<ElfW(Addr)>(phdr.table) - phdr.table[i].p_vaddr;
99 static ElfW(Dyn)* find_dynamic(const ProgHdr& phdr, ElfW(Addr) load_bias) {
100 for (size_t i = 0; i < phdr.size; ++i) {
101 if (phdr.table[i].p_type == PT_DYNAMIC) {
102 return reinterpret_cast<ElfW(Dyn)*>(phdr.table[i].p_vaddr + load_bias);
126 .table = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)),