Lines Matching refs:elf64
290 == offsetof (struct Elf, state.elf64.scns)); in file_read_elf()
414 elf->state.elf64.ehdr = ehdr; 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()
443 Elf64_Off e_shoff = elf->state.elf64.ehdr->e_shoff; in file_read_elf()
454 elf->state.elf64.shdr in file_read_elf()
459 elf->state.elf64.scns.data[cnt].index = cnt; in file_read_elf()
460 elf->state.elf64.scns.data[cnt].elf = elf; in file_read_elf()
461 elf->state.elf64.scns.data[cnt].shdr.e64 = in file_read_elf()
462 &elf->state.elf64.shdr[cnt]; in file_read_elf()
463 if (likely (elf->state.elf64.shdr[cnt].sh_offset < maxsize) in file_read_elf()
464 && likely (elf->state.elf64.shdr[cnt].sh_size in file_read_elf()
465 <= maxsize - elf->state.elf64.shdr[cnt].sh_offset)) in file_read_elf()
466 elf->state.elf64.scns.data[cnt].rawdata_base = in file_read_elf()
467 elf->state.elf64.scns.data[cnt].data_base = in file_read_elf()
469 + elf->state.elf64.shdr[cnt].sh_offset); in file_read_elf()
470 elf->state.elf64.scns.data[cnt].list = &elf->state.elf64.scns; in file_read_elf()
475 if (elf->state.elf64.shdr[cnt].sh_type == SHT_SYMTAB_SHNDX in file_read_elf()
476 && elf->state.elf64.shdr[cnt].sh_link < scncnt) in file_read_elf()
477 elf->state.elf64.scns.data[elf->state.elf64.shdr[cnt].sh_link].shndx_index in file_read_elf()
482 if (elf->state.elf64.scns.data[cnt].shndx_index == 0) in file_read_elf()
483 elf->state.elf64.scns.data[cnt].shndx_index = -1; in file_read_elf()
490 elf->state.elf64.scns.data[cnt].index = cnt; in file_read_elf()
491 elf->state.elf64.scns.data[cnt].elf = elf; in file_read_elf()
492 elf->state.elf64.scns.data[cnt].list = &elf->state.elf64.scns; in file_read_elf()
497 elf->state.elf64.scns_last = &elf->state.elf64.scns; in file_read_elf()
1036 == offsetof (struct Elf, state.elf64.scns)); in write_file()