Lines Matching refs:newehdr
410 GElf_Ehdr *newehdr;
1629 newehdr = gelf_getehdr (newelf, &newehdr_mem);
1630 newehdr == NULL)
1633 memcpy (newehdr->e_ident, ehdr->e_ident, EI_NIDENT);
1634 newehdr->e_type = ehdr->e_type;
1635 newehdr->e_machine = ehdr->e_machine;
1636 newehdr->e_version = ehdr->e_version;
1637 newehdr->e_entry = ehdr->e_entry;
1638 newehdr->e_flags = ehdr->e_flags;
1639 newehdr->e_phoff = ehdr->e_phoff;
1642 newehdr->e_shoff = ((shdr_info[shdridx].shdr.sh_offset
1645 newehdr->e_shentsize = gelf_fsize (elf, ELF_T_SHDR, 1, EV_CURRENT);
1649 newehdr->e_shstrndx = idx;
1661 newehdr->e_shstrndx = SHN_XINDEX;
1664 if (gelf_update_ehdr (newelf, newehdr) == 0)