Lines Matching refs:elf64
300 == offsetof (struct Elf, state.elf64.scns)); in file_read_elf()
412 elf->state.elf64.ehdr = ehdr; in file_read_elf()
413 elf->state.elf64.shdr in file_read_elf()
421 elf->state.elf64.scns.data[cnt].index = cnt; in file_read_elf()
422 elf->state.elf64.scns.data[cnt].elf = elf; in file_read_elf()
423 elf->state.elf64.scns.data[cnt].shdr.e64 = in file_read_elf()
424 &elf->state.elf64.shdr[cnt]; in file_read_elf()
425 if (likely (elf->state.elf64.shdr[cnt].sh_offset < maxsize) in file_read_elf()
426 && likely (maxsize - elf->state.elf64.shdr[cnt].sh_offset in file_read_elf()
427 <= elf->state.elf64.shdr[cnt].sh_size)) in file_read_elf()
428 elf->state.elf64.scns.data[cnt].rawdata_base = in file_read_elf()
429 elf->state.elf64.scns.data[cnt].data_base = in file_read_elf()
431 + elf->state.elf64.shdr[cnt].sh_offset); in file_read_elf()
432 elf->state.elf64.scns.data[cnt].list = &elf->state.elf64.scns; in file_read_elf()
437 if (elf->state.elf64.shdr[cnt].sh_type == SHT_SYMTAB_SHNDX in file_read_elf()
438 && elf->state.elf64.shdr[cnt].sh_link < scncnt) in file_read_elf()
439 elf->state.elf64.scns.data[elf->state.elf64.shdr[cnt].sh_link].shndx_index in file_read_elf()
444 if (elf->state.elf64.scns.data[cnt].shndx_index == 0) in file_read_elf()
445 elf->state.elf64.scns.data[cnt].shndx_index = -1; in file_read_elf()
451 elf->state.elf64.ehdr = memcpy (&elf->state.elf64.ehdr_mem, e_ident, in file_read_elf()
456 CONVERT (elf->state.elf64.ehdr_mem.e_type); in file_read_elf()
457 CONVERT (elf->state.elf64.ehdr_mem.e_machine); in file_read_elf()
458 CONVERT (elf->state.elf64.ehdr_mem.e_version); in file_read_elf()
459 CONVERT (elf->state.elf64.ehdr_mem.e_entry); in file_read_elf()
460 CONVERT (elf->state.elf64.ehdr_mem.e_phoff); in file_read_elf()
461 CONVERT (elf->state.elf64.ehdr_mem.e_shoff); in file_read_elf()
462 CONVERT (elf->state.elf64.ehdr_mem.e_flags); in file_read_elf()
463 CONVERT (elf->state.elf64.ehdr_mem.e_ehsize); in file_read_elf()
464 CONVERT (elf->state.elf64.ehdr_mem.e_phentsize); in file_read_elf()
465 CONVERT (elf->state.elf64.ehdr_mem.e_phnum); in file_read_elf()
466 CONVERT (elf->state.elf64.ehdr_mem.e_shentsize); in file_read_elf()
467 CONVERT (elf->state.elf64.ehdr_mem.e_shnum); in file_read_elf()
468 CONVERT (elf->state.elf64.ehdr_mem.e_shstrndx); in file_read_elf()
473 elf->state.elf64.scns.data[cnt].index = cnt; in file_read_elf()
474 elf->state.elf64.scns.data[cnt].elf = elf; in file_read_elf()
475 elf->state.elf64.scns.data[cnt].list = &elf->state.elf64.scns; in file_read_elf()
480 elf->state.elf64.scns_last = &elf->state.elf64.scns; in file_read_elf()
996 == offsetof (struct Elf, state.elf64.scns)); in write_file()