Lines Matching refs:newehdr
428 GElf_Ehdr *newehdr; in handle_elf() local
1924 newehdr = gelf_getehdr (newelf, &newehdr_mem); in handle_elf()
1925 if (newehdr == NULL) in handle_elf()
1928 memcpy (newehdr->e_ident, ehdr->e_ident, EI_NIDENT); in handle_elf()
1929 newehdr->e_type = ehdr->e_type; in handle_elf()
1930 newehdr->e_machine = ehdr->e_machine; in handle_elf()
1931 newehdr->e_version = ehdr->e_version; in handle_elf()
1932 newehdr->e_entry = ehdr->e_entry; in handle_elf()
1933 newehdr->e_flags = ehdr->e_flags; in handle_elf()
1934 newehdr->e_phoff = ehdr->e_phoff; in handle_elf()
1938 newehdr->e_shoff = ((shdr_info[shdridx].shdr.sh_offset in handle_elf()
1941 newehdr->e_shentsize = gelf_fsize (elf, ELF_T_SHDR, 1, EV_CURRENT); in handle_elf()
1945 newehdr->e_shstrndx = idx; in handle_elf()
1957 newehdr->e_shstrndx = SHN_XINDEX; in handle_elf()
1960 if (gelf_update_ehdr (newelf, newehdr) == 0) in handle_elf()
1994 if (newehdr->e_ident[EI_CLASS] == ELFCLASS32) in handle_elf()