Lines Matching refs:elfhdr
55 #define elfhdr ex.Elfhdr macro
224 i = xread(fd, (char *)&elfhdr, sizeof (Elf64_Ehdr)); in readfile()
232 if (*(int *)&elfhdr.e_ident == *(int *)(ELFMAG)) { in readfile()
234 int is64 = (elfhdr.e_ident[EI_CLASS] == in readfile()
239 *(int *)&elfhdr.e_ident[0], in readfile()
240 *(int *)&elfhdr.e_ident[4], in readfile()
241 *(int *)&elfhdr.e_ident[8], in readfile()
242 *(int *)&elfhdr.e_ident[12]); in readfile()
243 dprintf("e_machine\t0x%x\n", elfhdr.e_machine); in readfile()
247 (u_longlong_t)elfhdr.e_entry)); in readfile()
250 (u_longlong_t)elfhdr.e_shoff)); in readfile()
252 elfhdr64.e_shentsize : elfhdr.e_shentsize)); in readfile()
254 elfhdr64.e_shnum : elfhdr.e_shnum)); in readfile()
256 elfhdr64.e_shstrndx : elfhdr.e_shstrndx)); in readfile()
262 elfhdr.e_ident[EI_CLASS], ELFCLASS32, ELFCLASS64); in readfile()
264 if (elfhdr.e_ident[EI_CLASS] == ELFCLASS64) { in readfile()
266 if (elfhdr.e_machine != EM_AMD64) { in readfile()
269 "= %d).\n", elfhdr.e_machine); in readfile()
284 amd64_elf64 = (elfhdr.e_ident[EI_CLASS] == in readfile()
289 (Elf64_Ehdr *)&elfhdr); in readfile()
305 return (read_elf32(fd, print, &elfhdr)); in readfile()