Lines Matching refs:ehdr
289 Elf32_Ehdr *const ehdr = mmap_file(fname); in do_file() local
292 ehdr_curr = ehdr; in do_file()
296 switch (ehdr->e_ident[EI_DATA]) { in do_file()
300 ehdr->e_ident[EI_DATA], fname); in do_file()
320 if (memcmp(ELFMAG, ehdr->e_ident, SELFMAG) != 0 in do_file()
321 || w2(ehdr->e_type) != ET_REL in do_file()
322 || ehdr->e_ident[EI_VERSION] != EV_CURRENT) { in do_file()
328 switch (w2(ehdr->e_machine)) { in do_file()
331 w2(ehdr->e_machine), fname); in do_file()
358 switch (ehdr->e_ident[EI_CLASS]) { in do_file()
361 ehdr->e_ident[EI_CLASS], fname); in do_file()
365 if (w2(ehdr->e_ehsize) != sizeof(Elf32_Ehdr) in do_file()
366 || w2(ehdr->e_shentsize) != sizeof(Elf32_Shdr)) { in do_file()
371 if (w2(ehdr->e_machine) == EM_S390) { in do_file()
375 if (w2(ehdr->e_machine) == EM_MIPS) { in do_file()
379 do32(ehdr, fname, reltype); in do_file()
382 Elf64_Ehdr *const ghdr = (Elf64_Ehdr *)ehdr; in do_file()