Lines Matching refs:phdr
386 const Elf_Phdr *phdr = &pinfo->dlpi_phdr[i]; in calculateImageBase() local
387 if (phdr->p_type == PT_PHDR) { in calculateImageBase()
389 phdr->p_vaddr; in calculateImageBase()
412 static bool checkAddrInSegment(const Elf_Phdr *phdr, size_t image_base, in checkAddrInSegment() argument
414 if (phdr->p_type == PT_LOAD) { in checkAddrInSegment()
415 uintptr_t begin = image_base + phdr->p_vaddr; in checkAddrInSegment()
416 uintptr_t end = begin + phdr->p_memsz; in checkAddrInSegment()
419 cbdata->sects->text_segment_length = phdr->p_memsz; in checkAddrInSegment()
426 static bool checkForUnwindInfoSegment(const Elf_Phdr *phdr, size_t image_base, in checkForUnwindInfoSegment() argument
429 if (phdr->p_type == PT_GNU_EH_FRAME) { in checkForUnwindInfoSegment()
431 uintptr_t eh_frame_hdr_start = image_base + phdr->p_vaddr; in checkForUnwindInfoSegment()
433 cbdata->sects->dwarf_index_section_length = phdr->p_memsz; in checkForUnwindInfoSegment()
435 *cbdata->addressSpace, eh_frame_hdr_start, phdr->p_memsz, in checkForUnwindInfoSegment()
446 if (phdr->p_type == PT_ARM_EXIDX) { in checkForUnwindInfoSegment()
447 uintptr_t exidx_start = image_base + phdr->p_vaddr; in checkForUnwindInfoSegment()
449 cbdata->sects->arm_section_length = phdr->p_memsz; in checkForUnwindInfoSegment()
490 const Elf_Phdr *phdr = &pinfo->dlpi_phdr[i - 1]; in findUnwindSectionsByPhdr() local
491 if (checkForUnwindInfoSegment(phdr, image_base, cbdata)) { in findUnwindSectionsByPhdr()