Lines Matching refs:ehdr_mem

89   } ehdr_mem;  in get_shnum()  local
104 ehdr.p = &ehdr_mem; in get_shnum()
110 ehdr_mem.e32.e_shnum = ((Elf32_Ehdr *) e_ident)->e_shnum; in get_shnum()
111 ehdr_mem.e32.e_shoff = ((Elf32_Ehdr *) e_ident)->e_shoff; in get_shnum()
114 memcpy (&ehdr_mem, e_ident, sizeof (Elf32_Ehdr)); in get_shnum()
118 CONVERT (ehdr_mem.e32.e_shnum); in get_shnum()
119 CONVERT (ehdr_mem.e32.e_shoff); in get_shnum()
126 ehdr_mem.e64.e_shnum = ((Elf64_Ehdr *) e_ident)->e_shnum; in get_shnum()
127 ehdr_mem.e64.e_shoff = ((Elf64_Ehdr *) e_ident)->e_shoff; in get_shnum()
130 memcpy (&ehdr_mem, e_ident, sizeof (Elf64_Ehdr)); in get_shnum()
134 CONVERT (ehdr_mem.e64.e_shnum); in get_shnum()
135 CONVERT (ehdr_mem.e64.e_shoff); in get_shnum()
317 elf->state.elf32.ehdr = memcpy (&elf->state.elf32.ehdr_mem, e_ident, in file_read_elf()
322 CONVERT (elf->state.elf32.ehdr_mem.e_type); in file_read_elf()
323 CONVERT (elf->state.elf32.ehdr_mem.e_machine); in file_read_elf()
324 CONVERT (elf->state.elf32.ehdr_mem.e_version); in file_read_elf()
325 CONVERT (elf->state.elf32.ehdr_mem.e_entry); in file_read_elf()
326 CONVERT (elf->state.elf32.ehdr_mem.e_phoff); in file_read_elf()
327 CONVERT (elf->state.elf32.ehdr_mem.e_shoff); in file_read_elf()
328 CONVERT (elf->state.elf32.ehdr_mem.e_flags); in file_read_elf()
329 CONVERT (elf->state.elf32.ehdr_mem.e_ehsize); in file_read_elf()
330 CONVERT (elf->state.elf32.ehdr_mem.e_phentsize); in file_read_elf()
331 CONVERT (elf->state.elf32.ehdr_mem.e_phnum); in file_read_elf()
332 CONVERT (elf->state.elf32.ehdr_mem.e_shentsize); in file_read_elf()
333 CONVERT (elf->state.elf32.ehdr_mem.e_shnum); in file_read_elf()
334 CONVERT (elf->state.elf32.ehdr_mem.e_shstrndx); in file_read_elf()
419 elf->state.elf64.ehdr = memcpy (&elf->state.elf64.ehdr_mem, e_ident, in file_read_elf()
424 CONVERT (elf->state.elf64.ehdr_mem.e_type); in file_read_elf()
425 CONVERT (elf->state.elf64.ehdr_mem.e_machine); in file_read_elf()
426 CONVERT (elf->state.elf64.ehdr_mem.e_version); in file_read_elf()
427 CONVERT (elf->state.elf64.ehdr_mem.e_entry); in file_read_elf()
428 CONVERT (elf->state.elf64.ehdr_mem.e_phoff); in file_read_elf()
429 CONVERT (elf->state.elf64.ehdr_mem.e_shoff); in file_read_elf()
430 CONVERT (elf->state.elf64.ehdr_mem.e_flags); in file_read_elf()
431 CONVERT (elf->state.elf64.ehdr_mem.e_ehsize); in file_read_elf()
432 CONVERT (elf->state.elf64.ehdr_mem.e_phentsize); in file_read_elf()
433 CONVERT (elf->state.elf64.ehdr_mem.e_phnum); in file_read_elf()
434 CONVERT (elf->state.elf64.ehdr_mem.e_shentsize); in file_read_elf()
435 CONVERT (elf->state.elf64.ehdr_mem.e_shnum); in file_read_elf()
436 CONVERT (elf->state.elf64.ehdr_mem.e_shstrndx); in file_read_elf()