Lines Matching defs:eh
77 Elf32_Ehdr eh;
98 if (read(fd, &eh, sizeof(eh)) != sizeof(eh)) {
99 warn("read: eh: %s", boot);
102 if (memcmp(eh.e_ident, ELFMAG, SELFMAG) != 0 ||
103 eh.e_ident[EI_CLASS] != ELFCLASS32) {
107 if (be16toh(eh.e_machine) != EM_PPC) {
112 for (i = 0; i < be16toh(eh.e_phnum); i++) {
113 (void)lseek(fd, be32toh(eh.e_phoff) + sizeof(ph) * i, SEEK_SET);