Lines Matching refs:ehdr
98 __elf_is_okay__(Elf_Ehdr *ehdr) in __elf_is_okay__() argument
107 if (IS_ELF(*ehdr) && in __elf_is_okay__()
108 ehdr->e_ident[EI_CLASS] == ELF_TARG_CLASS && in __elf_is_okay__()
109 ehdr->e_ident[EI_DATA] == ELF_TARG_DATA && in __elf_is_okay__()
110 ehdr->e_ident[EI_VERSION] == ELF_TARG_VER) { in __elf_is_okay__()
113 if (ehdr->e_machine == ELF_TARG_MACH && in __elf_is_okay__()
114 ehdr->e_version == ELF_TARG_VER) in __elf_is_okay__()
131 Elf_Ehdr ehdr; in __elf_fdnlist() local
140 _read(fd, &ehdr, sizeof(Elf_Ehdr)) != sizeof(Elf_Ehdr) || in __elf_fdnlist()
141 !__elf_is_okay__(&ehdr) || in __elf_fdnlist()
146 shdr_size = ehdr.e_shentsize * ehdr.e_shnum; in __elf_fdnlist()
156 (off_t)ehdr.e_shoff); in __elf_fdnlist()
167 for (i = 0; i < ehdr.e_shnum; i++) { in __elf_fdnlist()
239 ehdr.e_shnum); in __elf_fdnlist()