Lines Matching refs:phdr
549 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem); in consider_executable() local
550 if (phdr == NULL) in consider_executable()
553 if (phdr->p_align > 1 && (align == 0 || phdr->p_align < align)) in consider_executable()
554 align = phdr->p_align; in consider_executable()
557 && phdr->p_type == PT_LOAD in consider_executable()
558 && (phdr->p_offset & -align) == (ehdr.e_phoff & -align)) in consider_executable()
565 if (ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr != at_phdr) in consider_executable()
573 if (((ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr) & -align) in consider_executable()
578 GElf_Addr bias = (at_phdr - (ehdr.e_phoff - phdr->p_offset in consider_executable()
579 + phdr->p_vaddr)); in consider_executable()
602 if (phdr->p_type == PT_DYNAMIC) in consider_executable()
604 Elf_Data *data = elf_getdata_rawchunk (mod->main.elf, phdr->p_offset, in consider_executable()
605 phdr->p_filesz, ELF_T_DYN); in consider_executable()
617 d_val_vaddr = phdr->p_vaddr + entsize * j + entsize / 2; in consider_executable()
709 GElf_Addr phdr = 0; in dwfl_link_map_report() local
725 phdr = val; \ in dwfl_link_map_report()
770 == (phdr & (dwfl->segment_align - 1)))) in dwfl_link_map_report()
772 dyn_bias = phdr - vaddr; in dwfl_link_map_report()
786 if (phdr != 0 && phnum != 0) in dwfl_link_map_report()
789 int phdr_segndx = INTUSE(dwfl_addrsegment) (dwfl, phdr, &phdr_mod); in dwfl_link_map_report()
798 &in.d_size, phdr, phnum * phent, in dwfl_link_map_report()
936 ? find_executable (dwfl, phdr, entry, in dwfl_link_map_report()
940 : consider_executable (phdr_mod, phdr, entry, in dwfl_link_map_report()