Lines Matching refs:elfhdr
51 #define elfhdr ex.Elfhdr macro
184 i = xread(fd, (char *)&elfhdr, sizeof (Elf64_Ehdr)); in readfile()
192 if (*(int *)&elfhdr.e_ident == *(int *)(ELFMAG)) { in readfile()
194 int is64 = (elfhdr.e_ident[EI_CLASS] == in readfile()
199 *(int *)&elfhdr.e_ident[0], in readfile()
200 *(int *)&elfhdr.e_ident[4], in readfile()
201 *(int *)&elfhdr.e_ident[8], in readfile()
202 *(int *)&elfhdr.e_ident[12]); in readfile()
203 dprintf("e_machine\t0x%x\n", elfhdr.e_machine); in readfile()
207 (u_longlong_t)elfhdr.e_entry)); in readfile()
210 (u_longlong_t)elfhdr.e_shoff)); in readfile()
212 elfhdr64.e_shentsize : elfhdr.e_shentsize)); in readfile()
214 elfhdr64.e_shnum : elfhdr.e_shnum)); in readfile()
216 elfhdr64.e_shstrndx : elfhdr.e_shstrndx)); in readfile()
222 elfhdr.e_ident[EI_CLASS], ELFCLASS32, ELFCLASS64); in readfile()
224 if (elfhdr.e_ident[EI_CLASS] == ELFCLASS64) { in readfile()
226 (Elf64_Ehdr *)&elfhdr); in readfile()
233 return (read_elf32(fd, print, &elfhdr)); in readfile()