Lines Matching refs:newehdr
961 GElf_Ehdr *newehdr; in handle_elf() local
2505 newehdr = gelf_getehdr (newelf, &newehdr_mem); in handle_elf()
2506 if (newehdr == NULL) in handle_elf()
2509 memcpy (newehdr->e_ident, ehdr->e_ident, EI_NIDENT); in handle_elf()
2510 newehdr->e_type = ehdr->e_type; in handle_elf()
2511 newehdr->e_machine = ehdr->e_machine; in handle_elf()
2512 newehdr->e_version = ehdr->e_version; in handle_elf()
2513 newehdr->e_entry = ehdr->e_entry; in handle_elf()
2514 newehdr->e_flags = ehdr->e_flags; in handle_elf()
2515 newehdr->e_phoff = ehdr->e_phoff; in handle_elf()
2519 newehdr->e_shoff = ((lastsec_offset + lastsec_size + offsize - 1) in handle_elf()
2521 newehdr->e_shentsize = gelf_fsize (elf, ELF_T_SHDR, 1, EV_CURRENT); in handle_elf()
2523 if (gelf_update_ehdr (newelf, newehdr) == 0) in handle_elf()
2568 if (newehdr->e_ident[EI_CLASS] == ELFCLASS32) in handle_elf()