Lines Matching defs:Ehdr

100     Elf_Ehdr                Ehdr;
156 pModElf->pShStr = (const char *)(pu8 + pModElf->paShdrs[pModElf->Ehdr.e_shstrndx].sh_offset);
285 if (pSym->st_shndx < pModElf->Ehdr.e_shnum)
304 if (pSym->st_shndx < pModElf->Ehdr.e_shnum)
476 if (pSym->st_shndx >= pModElf->Ehdr.e_shnum)
479 AssertMsg(pSym->st_shndx < pModElf->Ehdr.e_shnum,
480 ("iSym=%d st_shndx=%d e_shnum=%d pszName=%s\n", iSym, pSym->st_shndx, pModElf->Ehdr.e_shnum, pszName));
726 else if (paSyms[iSym].st_shndx < pModElf->Ehdr.e_shnum)
728 if (pModElf->Ehdr.e_type == ET_REL)
777 switch (pModElf->Ehdr.e_type)
794 for (unsigned iShdr = 0; iShdr < pModElf->Ehdr.e_shnum; iShdr++)
842 switch (pModElf->Ehdr.e_type)
875 for (unsigned iShdr = 0; iShdr < pModElf->Ehdr.e_shnum; iShdr++)
888 if (pShdrRel->sh_info >= pModElf->Ehdr.e_shnum)
902 if (pModElf->Ehdr.e_type == ET_REL)
934 else if (pSym->st_shndx < pThis->Ehdr.e_shnum)
936 if (pThis->Ehdr.e_type == ET_REL)
1034 for (unsigned iShdr = 0; iShdr < pModElf->Ehdr.e_shnum; iShdr++)
1122 for (unsigned iShdr = 1; iShdr < pModElf->Ehdr.e_shnum; iShdr++)
1147 pModElf->Ehdr.e_shnum - iShdr - 1);
1189 unsigned cLeft = pModElf->Ehdr.e_shnum - 1;
1237 if (iSeg >= pModElf->Ehdr.e_shnum - 1U)
1244 pModElf->Ehdr.e_shnum - iSeg - 1);
1265 unsigned cLeft = pModElf->Ehdr.e_shnum - 1;
1306 AssertReturn(iDbgInfo < pThis->Ehdr.e_shnum && iDbgInfo + 1 < pThis->Ehdr.e_shnum, VERR_INVALID_PARAMETER);
1330 if ( iRelocs >= pThis->Ehdr.e_shnum
1336 while ( iRelocs < pThis->Ehdr.e_shnum
1342 if ( iRelocs < pThis->Ehdr.e_shnum
1370 if (pThis->Ehdr.e_type == ET_REL)
1588 RTFOFF off = pModElf->paShdrs[pModElf->Ehdr.e_shstrndx].sh_offset + offName;
1665 if (pShdr->sh_link >= pModElf->Ehdr.e_shnum)
1668 pszLogName, iShdr, pShdr->sh_link, pModElf->Ehdr.e_shnum)); NOREF(pszLogName);
1676 if (pShdr->sh_info >= pModElf->Ehdr.e_shnum)
1679 pszLogName, iShdr, pShdr->sh_link, pModElf->Ehdr.e_shnum));
1766 //pModElf->Ehdr = {0};
1782 int rc = pReader->pfnRead(pReader, &pModElf->Ehdr, sizeof(pModElf->Ehdr), 0);
1786 rc = RTLDRELF_NAME(ValidateElfHeader)(&pModElf->Ehdr, pszLogName, cbRawImage, &enmArchImage);
1800 size_t const cbShdrs = pModElf->Ehdr.e_shnum * sizeof(Elf_Shdr);
1805 rc = pReader->pfnRead(pReader, paShdrs, cbShdrs, pModElf->Ehdr.e_shoff);
1808 memcpy(&paShdrs[pModElf->Ehdr.e_shnum], paShdrs, cbShdrs);
1809 pModElf->paOrgShdrs = &paShdrs[pModElf->Ehdr.e_shnum];
1811 pModElf->cbShStr = paShdrs[pModElf->Ehdr.e_shstrndx].sh_size;
1817 for (unsigned i = 0; i < pModElf->Ehdr.e_shnum; i++)
1841 if (i == pModElf->Ehdr.e_shstrndx)
1875 if (RT_SUCCESS(rc) && pModElf->Ehdr.e_type != ET_REL)
1878 for (unsigned i = 0; i < pModElf->Ehdr.e_shnum; i++)
1893 for (unsigned i = 0; i < pModElf->Ehdr.e_shnum; i++)
1896 if (pModElf->Ehdr.e_type == ET_REL)