Home | History | Annotate | Download | only in libdwfl

Lines Matching defs:phdr

217 	 based on its phdr mappings.  */
476 // XXX this could be saved in the file cache: phdr vaddr, DT_DEBUG d_val vaddr
484 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem);
485 if (phdr == NULL)
488 if (phdr->p_align > 1 && (align == 0 || phdr->p_align < align))
489 align = phdr->p_align;
492 && phdr->p_type == PT_LOAD
493 && (phdr->p_offset & -align) == (ehdr.e_phoff & -align))
497 if its phdr mapping could not have supplied that. */
500 if (ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr != at_phdr)
506 phdr address don't match modulo ALIGN, then this
508 if (((ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr) & -align)
513 GElf_Addr bias = (at_phdr - (ehdr.e_phoff - phdr->p_offset
514 + phdr->p_vaddr));
537 if (phdr->p_type == PT_DYNAMIC)
539 Elf_Data *data = elf_getdata_rawchunk (mod->main.elf, phdr->p_offset,
540 phdr->p_filesz, ELF_T_DYN);
552 d_val_vaddr = phdr->p_vaddr + entsize * j + entsize / 2;
647 GElf_Addr phdr = 0;
660 phdr = val; \
691 /* If we found the phdr dimensions, search phdrs for PT_DYNAMIC. */
694 if (phdr != 0 && phnum != 0)
697 int phdr_segndx = INTUSE(dwfl_addrsegment) (dwfl, phdr, &phdr_mod);
706 phdr, phnum * phent, memory_callback_arg))
765 We'll either accept it if its phdr location and e_entry
772 ? find_executable (dwfl, phdr, entry,
776 : consider_executable (phdr_mod, phdr, entry,