Lines Matching refs:newehdr
400 GElf_Ehdr newehdr; in main() local
401 if (gelf_getehdr (elfnew, &newehdr) == NULL) in main()
404 newehdr.e_ident[EI_DATA] = ehdr.e_ident[EI_DATA]; in main()
405 newehdr.e_type = ehdr.e_type; in main()
406 newehdr.e_machine = ehdr.e_machine; in main()
407 newehdr.e_version = ehdr.e_version; in main()
408 newehdr.e_entry = ehdr.e_entry; in main()
409 newehdr.e_flags = ehdr.e_flags; in main()
415 newehdr.e_shstrndx = newstrtabndx; in main()
426 newehdr.e_shstrndx = SHN_XINDEX; in main()
429 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in main()
642 if (gelf_getehdr (elfnew, &newehdr) == NULL) in main()
645 newehdr.e_shoff = ((last_offset + offsize - 1) in main()
650 newehdr.e_phoff = ehdr.e_phoff; in main()
652 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in main()