Lines Matching refs:ehdr
332 Elf32_Ehdr *ehdr = addr; in do_file() local
335 switch (ehdr->e_ident[EI_DATA]) { in do_file()
354 ehdr->e_ident[EI_DATA], fname); in do_file()
358 if (memcmp(ELFMAG, ehdr->e_ident, SELFMAG) != 0 || in do_file()
359 (r2(&ehdr->e_type) != ET_EXEC && r2(&ehdr->e_type) != ET_DYN) || in do_file()
360 ehdr->e_ident[EI_VERSION] != EV_CURRENT) { in do_file()
365 switch (r2(&ehdr->e_machine)) { in do_file()
391 r2(&ehdr->e_machine), fname); in do_file()
395 switch (ehdr->e_ident[EI_CLASS]) { in do_file()
397 if (r2(&ehdr->e_ehsize) != sizeof(Elf32_Ehdr) || in do_file()
398 r2(&ehdr->e_shentsize) != sizeof(Elf32_Shdr)) { in do_file()
403 rc = do_sort_32(ehdr, fname, custom_sort); in do_file()
407 Elf64_Ehdr *const ghdr = (Elf64_Ehdr *)ehdr; in do_file()
420 ehdr->e_ident[EI_CLASS], fname); in do_file()