Lines Matching refs:newehdr
382 GElf_Ehdr newehdr; in main() local
383 if (gelf_getehdr (elfnew, &newehdr) == NULL) in main()
386 newehdr.e_ident[EI_DATA] = ehdr.e_ident[EI_DATA]; in main()
387 newehdr.e_type = ehdr.e_type; in main()
388 newehdr.e_machine = ehdr.e_machine; in main()
389 newehdr.e_version = ehdr.e_version; in main()
390 newehdr.e_entry = ehdr.e_entry; in main()
391 newehdr.e_flags = ehdr.e_flags; in main()
396 newehdr.e_shstrndx = newstrtabndx; in main()
407 newehdr.e_shstrndx = SHN_XINDEX; in main()
410 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in main()
630 if (gelf_getehdr (elfnew, &newehdr) == NULL) in main()
633 newehdr.e_shoff = ((last_offset + offsize - 1) in main()
638 newehdr.e_phoff = ehdr.e_phoff; in main()
640 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in main()