Home | History | Annotate | Download | only in common

Lines Matching defs:ehdr

161 	xarg->ehdr = *hdr;
162 xarg->ehdr.e_shstrndx = 0; /* .shstrtab will be the 1st section */
163 SECTION_NOPAD(sec, "ELF header", &xarg->ehdr, sizeof(Elf32_Ehdr));
181 xarg->ehdr.e_shnum = 0; /* no symbol */
191 xarg->ehdr.e_shnum = 3;
192 xarg->ehdr.e_shoff = sizeof(Elf32_Ehdr);
207 xarg->ehdr.e_shnum++;
252 Elf32_Ehdr *ehdr;
264 ehdr = buf;
292 if (*(u_int32_t *)&ehdr->e_ident[EI_MAG0] !=
294 *(u_int16_t *)&ehdr->e_ident[EI_CLASS] !=
310 if (ehdr->e_ident[EI_VERSION] != EV_CURRENT ||
311 ehdr->e_version != EV_CURRENT)
314 if ((u = ehdr->e_machine) != EM_68K)
317 if (ehdr->e_type != ET_EXEC)
319 if ((u = ehdr->e_phnum) != 1 && u != 2)
326 xk_elf(xarg, ehdr);