Lines Matching refs:elfnew
258 Elf *elfnew = NULL; in process_file() local
303 elf_end (elfnew); in process_file()
596 elfnew = elf_begin (fdnew, ELF_C_WRITE, NULL); in process_file()
597 if (elfnew == NULL) in process_file()
605 if (gelf_newehdr (elfnew, gelf_getclass (elf)) == 0) in process_file()
612 if (gelf_getehdr (elfnew, &newehdr) == NULL) in process_file()
625 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in process_file()
634 if (gelf_newphdr (elfnew, phnum) == 0) in process_file()
649 if (gelf_update_phdr (elfnew, cnt, phdr) == 0) in process_file()
846 Elf_Scn *newscn = elf_newscn (elfnew); in process_file()
952 size_t elsize = gelf_fsize (elfnew, ELF_T_SYM, 1, EV_CURRENT); in process_file()
994 scn = elf_getscn (elfnew, shdrstrndx); in process_file()
1096 if (gelf_getehdr (elfnew, &newehdr) == NULL) in process_file()
1104 if (setshdrstrndx (elfnew, &newehdr, shdrstrndx) != 0) in process_file()
1115 while ((scn = elf_nextscn (elfnew, scn)) != NULL) in process_file()
1161 size_t elsize = gelf_fsize (elfnew, ELF_T_SYM, 1, EV_CURRENT); in process_file()
1243 if (gelf_getehdr (elfnew, &newehdr) == NULL) in process_file()
1250 const size_t offsize = gelf_fsize (elfnew, ELF_T_OFF, 1, EV_CURRENT); in process_file()
1258 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in process_file()
1265 elf_flagelf (elfnew, ELF_C_SET, ((layout ? ELF_F_LAYOUT : 0) in process_file()
1268 if (elf_update (elfnew, ELF_C_WRITE) < 0) in process_file()
1274 elf_end (elfnew); in process_file()
1275 elfnew = NULL; in process_file()