Lines Matching refs:ehdr
484 Elf32_Ehdr *ehdr; in do_file() local
487 ehdr = mmap_file(fname); in do_file()
488 if (!ehdr) in do_file()
494 switch (ehdr->e_ident[EI_DATA]) { in do_file()
498 ehdr->e_ident[EI_DATA], fname); in do_file()
527 if (memcmp(ELFMAG, ehdr->e_ident, SELFMAG) != 0 || in do_file()
528 w2(ehdr->e_type) != ET_REL || in do_file()
529 ehdr->e_ident[EI_VERSION] != EV_CURRENT) { in do_file()
535 switch (w2(ehdr->e_machine)) { in do_file()
538 w2(ehdr->e_machine), fname); in do_file()
580 switch (ehdr->e_ident[EI_CLASS]) { in do_file()
583 ehdr->e_ident[EI_CLASS], fname); in do_file()
586 if (w2(ehdr->e_ehsize) != sizeof(Elf32_Ehdr) in do_file()
587 || w2(ehdr->e_shentsize) != sizeof(Elf32_Shdr)) { in do_file()
592 if (w2(ehdr->e_machine) == EM_MIPS) { in do_file()
596 if (do32(ehdr, fname, reltype) < 0) in do_file()
600 Elf64_Ehdr *const ghdr = (Elf64_Ehdr *)ehdr; in do_file()