Lines Matching defs:ehdrp
59 const Elf_Ehdr *ehdrp;
64 if (check(0, sizeof *ehdrp))
66 ehdrp = (const Elf_Ehdr *)&mappedfile[0];
68 if (memcmp(ehdrp->e_ident, ELFMAG, SELFMAG) != 0 ||
69 ehdrp->e_ident[EI_CLASS] != ELFCLASS)
72 switch (ehdrp->e_machine) {
87 const Elf_Ehdr *ehdrp;
100 ehdrp = (const Elf_Ehdr *)&mappedfile[0];
101 nphdr = ehdrp->e_phnum;
102 phdr_off = ehdrp->e_phoff;