Lines Matching defs:pEhdr
50 * @param pEhdr Pointer to the ELF header.
72 Elf_Ehdr const *pEhdr, Elf_Shdr const *paShdrs,
90 if ( pEhdr->e_ident[EI_MAG0] != ELFMAG0
91 || pEhdr->e_ident[EI_MAG1] != ELFMAG1
92 || pEhdr->e_ident[EI_MAG2] != ELFMAG2
93 || pEhdr->e_ident[EI_MAG3] != ELFMAG3)
95 if (pEhdr->e_ident[EI_CLASS] != MY_ELFCLASS)
98 if (pEhdr->e_ident[EI_DATA] != ELFDATA2LSB)
100 if (pEhdr->e_ident[EI_VERSION] != EV_CURRENT)
102 if (pEhdr->e_version != EV_CURRENT)
104 if (pEhdr->e_ehsize != sizeof(*pEhdr))
108 if ( pEhdr->e_machine != EM_386
109 && pEhdr->e_machine != EM_486)
112 if (pEhdr->e_machine != EM_X86_64)
116 if ( pEhdr->e_type != ET_DYN
117 && pEhdr->e_type != ET_REL
118 && pEhdr->e_type != ET_EXEC) //??
120 if ( pEhdr->e_phentsize != sizeof(Elf_Phdr)
121 && pEhdr->e_phentsize) //??
123 if (pEhdr->e_shentsize != sizeof(Elf_Shdr))
125 if (pEhdr->e_shentsize != sizeof(Elf_Shdr))
127 if (ASMMemIsAll8(&pEhdr->e_ident[EI_PAD], EI_NIDENT - EI_PAD, 0) != NULL) //??
137 for (unsigned iSh = fFlags & DBG_DIGGER_ELF_FUNNY_SHDRS ? 1 : 0; iSh < pEhdr->e_shnum; iSh++)
140 if (paShdrs[iSh].sh_link >= pEhdr->e_shnum)
161 uint32_t uMaxShIdx = fFlags & DBG_DIGGER_ELF_FUNNY_SHDRS ? 0 : pEhdr->e_shnum - 1;
176 else if ( paSyms[iSym].st_shndx >= pEhdr->e_shnum