Lines Matching defs:ehdr
85 Elf32_Ehdr ehdr;
130 i = read(ifd, (char *)&ehdr, sizeof(ehdr));
131 if ((i != sizeof(ehdr)) ||
132 (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) ||
133 (ehdr.e_ident[EI_CLASS] != ELFCLASS32)) {
139 for (i = 0; i < ehdr.e_phnum; i++) {
140 if (lseek(ifd, (off_t) ehdr.e_phoff + i * sizeof(phdr), 0) < 0)
166 printf("entry point: 0x%08x\n", ehdr.e_entry);
207 NLVAR(X_KERNEL_ENTRY) = ehdr.e_entry;