Lines Matching refs:elfnew
44 static Elf *elfnew = NULL; variable
81 elf_end (elfnew); in release()
376 elfnew = elf_begin (fdnew, ELF_C_WRITE, NULL); in main()
377 if (elfnew == NULL) in main()
381 if (gelf_newehdr (elfnew, gelf_getclass (elf)) == 0) in main()
384 if (gelf_getehdr (elfnew, &newehdr) == NULL) in main()
400 Elf_Scn *zscn = elf_getscn (elfnew, 0); in main()
411 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in main()
417 if (gelf_newphdr (elfnew, phnum) == 0) in main()
426 if (gelf_update_phdr (elfnew, cnt, phdr) == 0) in main()
451 Elf_Scn *newscn = elf_newscn (elfnew); in main()
632 if (gelf_getehdr (elfnew, &newehdr) == NULL) in main()
642 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in main()
645 elf_flagelf (elfnew, ELF_C_SET, ELF_F_LAYOUT); in main()
648 if (elf_update (elfnew, ELF_C_WRITE) == -1) in main()
651 elf_end (elfnew); in main()
652 elfnew = NULL; in main()