Lines Matching refs:elfnew
43 static Elf *elfnew = NULL; variable
80 elf_end (elfnew); in release()
375 elfnew = elf_begin (fdnew, ELF_C_WRITE, NULL); in main()
376 if (elfnew == NULL) in main()
380 if (gelf_newehdr (elfnew, gelf_getclass (elf)) == 0) in main()
383 if (gelf_getehdr (elfnew, &newehdr) == NULL) in main()
399 Elf_Scn *zscn = elf_getscn (elfnew, 0); in main()
410 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in main()
416 if (gelf_newphdr (elfnew, phnum) == 0) in main()
425 if (gelf_update_phdr (elfnew, cnt, phdr) == 0) in main()
450 Elf_Scn *newscn = elf_newscn (elfnew); in main()
630 if (gelf_getehdr (elfnew, &newehdr) == NULL) in main()
640 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in main()
643 elf_flagelf (elfnew, ELF_C_SET, ELF_F_LAYOUT); in main()
646 if (elf_update (elfnew, ELF_C_WRITE) == -1) in main()
649 elf_end (elfnew); in main()
650 elfnew = NULL; in main()