Lines Matching refs:ehdr_mem
86 } ehdr_mem; in get_shnum() local
108 ehdr.p = &ehdr_mem; in get_shnum()
114 ehdr_mem.e32.e_shnum = ((Elf32_Ehdr *) e_ident)->e_shnum; in get_shnum()
115 ehdr_mem.e32.e_shoff = ((Elf32_Ehdr *) e_ident)->e_shoff; in get_shnum()
118 memcpy (&ehdr_mem, e_ident, sizeof (Elf32_Ehdr)); in get_shnum()
122 CONVERT (ehdr_mem.e32.e_shnum); in get_shnum()
123 CONVERT (ehdr_mem.e32.e_shoff); in get_shnum()
130 ehdr_mem.e64.e_shnum = ((Elf64_Ehdr *) e_ident)->e_shnum; in get_shnum()
131 ehdr_mem.e64.e_shoff = ((Elf64_Ehdr *) e_ident)->e_shoff; in get_shnum()
134 memcpy (&ehdr_mem, e_ident, sizeof (Elf64_Ehdr)); in get_shnum()
138 CONVERT (ehdr_mem.e64.e_shnum); in get_shnum()
139 CONVERT (ehdr_mem.e64.e_shoff); in get_shnum()
357 elf->state.elf32.ehdr = memcpy (&elf->state.elf32.ehdr_mem, e_ident, in file_read_elf()
362 CONVERT (elf->state.elf32.ehdr_mem.e_type); in file_read_elf()
363 CONVERT (elf->state.elf32.ehdr_mem.e_machine); in file_read_elf()
364 CONVERT (elf->state.elf32.ehdr_mem.e_version); in file_read_elf()
365 CONVERT (elf->state.elf32.ehdr_mem.e_entry); in file_read_elf()
366 CONVERT (elf->state.elf32.ehdr_mem.e_phoff); in file_read_elf()
367 CONVERT (elf->state.elf32.ehdr_mem.e_shoff); in file_read_elf()
368 CONVERT (elf->state.elf32.ehdr_mem.e_flags); in file_read_elf()
369 CONVERT (elf->state.elf32.ehdr_mem.e_ehsize); in file_read_elf()
370 CONVERT (elf->state.elf32.ehdr_mem.e_phentsize); in file_read_elf()
371 CONVERT (elf->state.elf32.ehdr_mem.e_phnum); in file_read_elf()
372 CONVERT (elf->state.elf32.ehdr_mem.e_shentsize); in file_read_elf()
373 CONVERT (elf->state.elf32.ehdr_mem.e_shnum); in file_read_elf()
374 CONVERT (elf->state.elf32.ehdr_mem.e_shstrndx); in file_read_elf()
461 elf->state.elf64.ehdr = memcpy (&elf->state.elf64.ehdr_mem, e_ident, in file_read_elf()
466 CONVERT (elf->state.elf64.ehdr_mem.e_type); in file_read_elf()
467 CONVERT (elf->state.elf64.ehdr_mem.e_machine); in file_read_elf()
468 CONVERT (elf->state.elf64.ehdr_mem.e_version); in file_read_elf()
469 CONVERT (elf->state.elf64.ehdr_mem.e_entry); in file_read_elf()
470 CONVERT (elf->state.elf64.ehdr_mem.e_phoff); in file_read_elf()
471 CONVERT (elf->state.elf64.ehdr_mem.e_shoff); in file_read_elf()
472 CONVERT (elf->state.elf64.ehdr_mem.e_flags); in file_read_elf()
473 CONVERT (elf->state.elf64.ehdr_mem.e_ehsize); in file_read_elf()
474 CONVERT (elf->state.elf64.ehdr_mem.e_phentsize); in file_read_elf()
475 CONVERT (elf->state.elf64.ehdr_mem.e_phnum); in file_read_elf()
476 CONVERT (elf->state.elf64.ehdr_mem.e_shentsize); in file_read_elf()
477 CONVERT (elf->state.elf64.ehdr_mem.e_shnum); in file_read_elf()
478 CONVERT (elf->state.elf64.ehdr_mem.e_shstrndx); in file_read_elf()