Lines Matching refs:newehdr
1017 GElf_Ehdr *newehdr; in handle_elf() local
2524 newehdr = gelf_getehdr (newelf, &newehdr_mem); in handle_elf()
2525 if (newehdr == NULL) in handle_elf()
2528 memcpy (newehdr->e_ident, ehdr->e_ident, EI_NIDENT); in handle_elf()
2529 newehdr->e_type = ehdr->e_type; in handle_elf()
2530 newehdr->e_machine = ehdr->e_machine; in handle_elf()
2531 newehdr->e_version = ehdr->e_version; in handle_elf()
2532 newehdr->e_entry = ehdr->e_entry; in handle_elf()
2533 newehdr->e_flags = ehdr->e_flags; in handle_elf()
2534 newehdr->e_phoff = ehdr->e_phoff; in handle_elf()
2538 newehdr->e_shoff = ((lastsec_offset + lastsec_size + offsize - 1) in handle_elf()
2540 newehdr->e_shentsize = gelf_fsize (elf, ELF_T_SHDR, 1, EV_CURRENT); in handle_elf()
2542 if (gelf_update_ehdr (newelf, newehdr) == 0) in handle_elf()
2587 if (newehdr->e_ident[EI_CLASS] == ELFCLASS32) in handle_elf()