Lines Matching refs:phdr
37 Elf_W(Phdr) phdr; in get_dyn_gp()
38 GET_PHDR_FIELD(ei, dyn_phdr_offset, &phdr, p_offset); in get_dyn_gp()
40 Elf_W(Off) dyn_offset = phdr.p_offset; in get_dyn_gp()
62 Elf_W(Phdr) phdr; in get_eh_frame_info()
63 GET_PHDR_FIELD(ei, phdr_offset, &phdr, p_offset); in get_eh_frame_info()
64 unw_word_t hdr_offset = phdr.p_offset; in get_eh_frame_info()
67 if (sizeof(hdr) != elf_w (memory_read) (ei, ei->u.memory.start + phdr.p_offset, in get_eh_frame_info()
114 GET_PHDR_FIELD(ei, phdr_offset, &phdr, p_vaddr); in get_eh_frame_info()
115 GET_PHDR_FIELD(ei, phdr_offset, &phdr, p_offset); in get_eh_frame_info()
117 load_base + phdr.p_vaddr + addr - (uintptr_t) ei->u.memory.start - phdr.p_offset; in get_eh_frame_info()
121 di_cache->u.rti.segbase = ((load_base + phdr.p_vaddr) + (hdr_offset - phdr.p_offset)); in get_eh_frame_info()
145 Elf_W(Phdr) phdr; in dwarf_find_unwind_table_memory()
146 GET_PHDR_FIELD(ei, offset, &phdr, p_type); in dwarf_find_unwind_table_memory()
147 switch (phdr.p_type) { in dwarf_find_unwind_table_memory()
149 GET_PHDR_FIELD(ei, offset, &phdr, p_vaddr); in dwarf_find_unwind_table_memory()
150 if (phdr.p_vaddr < start_ip) { in dwarf_find_unwind_table_memory()
151 start_ip = phdr.p_vaddr; in dwarf_find_unwind_table_memory()
154 GET_PHDR_FIELD(ei, offset, &phdr, p_memsz); in dwarf_find_unwind_table_memory()
155 if (phdr.p_vaddr + phdr.p_memsz > end_ip) { in dwarf_find_unwind_table_memory()
156 end_ip = phdr.p_vaddr + phdr.p_memsz; in dwarf_find_unwind_table_memory()
159 GET_PHDR_FIELD(ei, offset, &phdr, p_offset); in dwarf_find_unwind_table_memory()
160 if (phdr.p_offset == mapoff) { in dwarf_find_unwind_table_memory()
162 txt_pvaddr = phdr.p_vaddr; in dwarf_find_unwind_table_memory()
183 offset += sizeof(phdr); in dwarf_find_unwind_table_memory()
221 Elf_W(Phdr) phdr; in dwarf_find_unwind_table_memory()
222 GET_PHDR_FIELD(ei, arm_exidx_phdr_offset, &phdr, p_vaddr); in dwarf_find_unwind_table_memory()
223 GET_PHDR_FIELD(ei, arm_exidx_phdr_offset, &phdr, p_memsz); in dwarf_find_unwind_table_memory()
224 edi->di_arm.u.rti.table_data = load_base + phdr.p_vaddr; in dwarf_find_unwind_table_memory()
225 edi->di_arm.u.rti.table_len = phdr.p_memsz; in dwarf_find_unwind_table_memory()
243 Elf_W(Phdr) *phdr, *ptxt = NULL, *peh_hdr = NULL, *pdyn = NULL; in dwarf_find_unwind_table()
274 phdr = (Elf_W(Phdr) *) ((char *) ei->u.mapped.image + ehdr->e_phoff); in dwarf_find_unwind_table()
279 switch (phdr[i].p_type) in dwarf_find_unwind_table()
282 if (phdr[i].p_vaddr < start_ip) in dwarf_find_unwind_table()
283 start_ip = phdr[i].p_vaddr; in dwarf_find_unwind_table()
285 if (phdr[i].p_vaddr + phdr[i].p_memsz > end_ip) in dwarf_find_unwind_table()
286 end_ip = phdr[i].p_vaddr + phdr[i].p_memsz; in dwarf_find_unwind_table()
288 if (phdr[i].p_offset == mapoff) in dwarf_find_unwind_table()
289 ptxt = phdr + i; in dwarf_find_unwind_table()
293 if ((uintptr_t) ei->u.mapped.image + phdr->p_filesz > max_load_addr) in dwarf_find_unwind_table()
294 max_load_addr = (uintptr_t) ei->u.mapped.image + phdr->p_filesz; in dwarf_find_unwind_table()
299 peh_hdr = phdr + i; in dwarf_find_unwind_table()
303 pdyn = phdr + i; in dwarf_find_unwind_table()
308 parm_exidx = phdr + i; in dwarf_find_unwind_table()