Lines Matching refs:phdr
394 static bool checkAddrInSegment(const Elf_Phdr *phdr, size_t image_base,
396 if (phdr->p_type == PT_LOAD) {
397 uintptr_t begin = image_base + phdr->p_vaddr;
398 uintptr_t end = begin + phdr->p_memsz;
401 cbdata->sects->text_segment_length = phdr->p_memsz;
408 static bool checkForUnwindInfoSegment(const Elf_Phdr *phdr, size_t image_base,
411 if (phdr->p_type == PT_GNU_EH_FRAME) {
413 uintptr_t eh_frame_hdr_start = image_base + phdr->p_vaddr;
415 cbdata->sects->dwarf_index_section_length = phdr->p_memsz;
418 eh_frame_hdr_start + phdr->p_memsz, hdrInfo)) {
428 if (phdr->p_type == PT_ARM_EXIDX) {
429 uintptr_t exidx_start = image_base + phdr->p_vaddr;
431 cbdata->sects->arm_section_length = phdr->p_memsz;
472 const Elf_Phdr *phdr = &pinfo->dlpi_phdr[i - 1];
473 if (checkForUnwindInfoSegment(phdr, image_base, cbdata)) {