Lines Matching refs:pinfo
369 static Elf_Addr calculateImageBase(struct dl_phdr_info *pinfo) { in calculateImageBase() argument
370 Elf_Addr image_base = pinfo->dlpi_addr; in calculateImageBase()
378 for (Elf_Half i = 0; i < pinfo->dlpi_phnum; i++) { in calculateImageBase()
379 const Elf_Phdr *phdr = &pinfo->dlpi_phdr[i]; in calculateImageBase()
381 image_base = reinterpret_cast<Elf_Addr>(pinfo->dlpi_phdr) - in calculateImageBase()
451 static int findUnwindSectionsByPhdr(struct dl_phdr_info *pinfo, in findUnwindSectionsByPhdr() argument
454 if (pinfo->dlpi_phnum == 0 || cbdata->targetAddr < pinfo->dlpi_addr) in findUnwindSectionsByPhdr()
457 if (TheFrameHeaderCache.find(pinfo, pinfo_size, data)) in findUnwindSectionsByPhdr()
464 Elf_Addr image_base = calculateImageBase(pinfo); in findUnwindSectionsByPhdr()
470 for (Elf_Half i = 0; i < pinfo->dlpi_phnum; ++i) { in findUnwindSectionsByPhdr()
471 if (checkAddrInSegment(&pinfo->dlpi_phdr[i], image_base, cbdata)) { in findUnwindSectionsByPhdr()
482 for (Elf_Half i = pinfo->dlpi_phnum; i > 0; i--) { in findUnwindSectionsByPhdr()
483 const Elf_Phdr *phdr = &pinfo->dlpi_phdr[i - 1]; in findUnwindSectionsByPhdr()