Lines Matching refs:newehdr
443 GElf_Ehdr *newehdr; in handle_elf() local
2033 newehdr = gelf_getehdr (newelf, &newehdr_mem); in handle_elf()
2034 if (newehdr == NULL) in handle_elf()
2037 memcpy (newehdr->e_ident, ehdr->e_ident, EI_NIDENT); in handle_elf()
2038 newehdr->e_type = ehdr->e_type; in handle_elf()
2039 newehdr->e_machine = ehdr->e_machine; in handle_elf()
2040 newehdr->e_version = ehdr->e_version; in handle_elf()
2041 newehdr->e_entry = ehdr->e_entry; in handle_elf()
2042 newehdr->e_flags = ehdr->e_flags; in handle_elf()
2043 newehdr->e_phoff = ehdr->e_phoff; in handle_elf()
2047 newehdr->e_shoff = ((shdr_info[shdridx].shdr.sh_offset in handle_elf()
2050 newehdr->e_shentsize = gelf_fsize (elf, ELF_T_SHDR, 1, EV_CURRENT); in handle_elf()
2054 newehdr->e_shstrndx = idx; in handle_elf()
2066 newehdr->e_shstrndx = SHN_XINDEX; in handle_elf()
2069 if (gelf_update_ehdr (newelf, newehdr) == 0) in handle_elf()
2105 if (newehdr->e_ident[EI_CLASS] == ELFCLASS32) in handle_elf()