Lines Matching refs:elfnew
261 Elf *elfnew = NULL; in process_file() local
297 elf_end (elfnew); in process_file()
560 elfnew = elf_begin (fdnew, ELF_C_WRITE, NULL); in process_file()
561 if (elfnew == NULL) in process_file()
569 if (gelf_newehdr (elfnew, gelf_getclass (elf)) == 0) in process_file()
576 if (gelf_getehdr (elfnew, &newehdr) == NULL) in process_file()
589 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in process_file()
598 if (gelf_newphdr (elfnew, phnum) == 0) in process_file()
613 if (gelf_update_phdr (elfnew, cnt, phdr) == 0) in process_file()
810 Elf_Scn *newscn = elf_newscn (elfnew); in process_file()
916 size_t elsize = gelf_fsize (elfnew, ELF_T_SYM, 1, EV_CURRENT); in process_file()
958 scn = elf_getscn (elfnew, shdrstrndx); in process_file()
1056 if (gelf_getehdr (elfnew, &newehdr) == NULL) in process_file()
1064 if (setshdrstrndx (elfnew, &newehdr, shdrstrndx) != 0) in process_file()
1075 while ((scn = elf_nextscn (elfnew, scn)) != NULL) in process_file()
1121 size_t elsize = gelf_fsize (elfnew, ELF_T_SYM, 1, EV_CURRENT); in process_file()
1203 if (gelf_getehdr (elfnew, &newehdr) == NULL) in process_file()
1210 const size_t offsize = gelf_fsize (elfnew, ELF_T_OFF, 1, EV_CURRENT); in process_file()
1218 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in process_file()
1225 elf_flagelf (elfnew, ELF_C_SET, ((layout ? ELF_F_LAYOUT : 0) in process_file()
1228 if (elf_update (elfnew, ELF_C_WRITE) < 0) in process_file()
1234 elf_end (elfnew); in process_file()
1235 elfnew = NULL; in process_file()