Lines Matching refs:pShdr
890 const Elf_Shdr *pShdr = &paShdrs[pShdrRel->sh_info]; /* the section to fixup. */
891 if (!(pShdr->sh_flags & SHF_ALLOC))
898 pszLogName, (int)pShdrRel->sh_info, ELF_SH_STR(pModElf, pShdr->sh_name), (int)pShdr->sh_info, (int)pShdr->sh_link,
904 pShdr->sh_addr,
905 pShdr->sh_size,
906 (const uint8_t *)pModElf->pvBits + pShdr->sh_offset,
907 (uint8_t *)pvBits + pShdr->sh_addr,
912 pShdr->sh_addr,
913 pShdr->sh_size,
914 (const uint8_t *)pModElf->pvBits + pShdr->sh_offset,
915 (uint8_t *)pvBits + pShdr->sh_addr,
1089 * @param pShdr The section header to start searching at.
1092 static const Elf_Shdr *RTLDRELF_NAME(GetFirstAllocatedSection)(const Elf_Shdr *pShdr, unsigned cLeft)
1096 if (pShdr->sh_flags & SHF_ALLOC)
1097 return pShdr;
1098 pShdr++;
1190 const Elf_Shdr *pShdr = &pModElf->paOrgShdrs[cLeft];
1193 if (pShdr->sh_flags & SHF_ALLOC)
1195 RTLDRADDR offSeg = LinkAddress - pShdr->sh_addr;
1196 if (offSeg < pShdr->sh_size)
1202 if (offSeg == pShdr->sh_size)
1203 pShdrEnd = pShdr;
1205 pShdr--;
1266 const Elf_Shdr *pShdr = &pModElf->paShdrs[cLeft];
1269 if (pShdr->sh_flags & SHF_ALLOC)
1271 Elf_Addr cbSeg = PrevAddr ? PrevAddr - pShdr->sh_addr : pShdr->sh_size;
1272 RTLDRADDR offSeg = Rva - pShdr->sh_addr;
1279 PrevAddr = pShdr->sh_addr;
1281 pShdr--;
1621 const Elf_Shdr *pShdr = &pModElf->paShdrs[iShdr];
1635 pShdr->sh_name, RTLDRELF_NAME(GetSHdrName)(pModElf, pShdr->sh_name, szSectionName, sizeof(szSectionName)),
1636 pShdr->sh_type, rtldrElfGetShdrType(pShdr->sh_type), pShdr->sh_flags, pShdr->sh_addr,
1637 pShdr->sh_offset, pShdr->sh_size, pShdr->sh_link, pShdr->sh_info, pShdr->sh_addralign,
1638 pShdr->sh_entsize));
1642 if ( pShdr->sh_name != 0
1643 || pShdr->sh_type != SHT_NULL
1644 || pShdr->sh_flags != 0
1645 || pShdr->sh_addr != 0
1646 || pShdr->sh_size != 0
1647 || pShdr->sh_offset != 0
1648 || pShdr->sh_link != SHN_UNDEF
1649 || pShdr->sh_addralign != 0
1650 || pShdr->sh_entsize != 0 )
1652 Log(("RTLdrELF: %s: Bad #0 section: %.*Rhxs\n", pszLogName, sizeof(*pShdr), pShdr ));
1658 if (pShdr->sh_name >= pModElf->cbShStr)
1661 pszLogName, iShdr, pShdr->sh_name, pModElf->cbShStr)); NOREF(pszLogName);
1665 if (pShdr->sh_link >= pModElf->Ehdr.e_shnum)
1668 pszLogName, iShdr, pShdr->sh_link, pModElf->Ehdr.e_shnum)); NOREF(pszLogName);
1672 switch (pShdr->sh_type)
1676 if (pShdr->sh_info >= pModElf->Ehdr.e_shnum)
1679 pszLogName, iShdr, pShdr->sh_link, pModElf->Ehdr.e_shnum));
1705 Log(("RTLdrELF: %s: Warning, unknown type %d!\n", pszLogName, pShdr->sh_type));
1709 if ( pShdr->sh_type != SHT_NOBITS
1710 && pShdr->sh_size)
1712 RTFOFF offEnd = pShdr->sh_offset + pShdr->sh_size;
1714 || offEnd < (RTFOFF)pShdr->sh_offset)
1717 pszLogName, iShdr, pShdr->sh_offset, pShdr->sh_size, offEnd, cbRawImage));
1720 if (pShdr->sh_offset < sizeof(Elf_Ehdr))
1723 pszLogName, iShdr, pShdr->sh_offset, pShdr->sh_size, cbRawImage));