Searched refs:elfnew (Results 1 – 2 of 2) sorted by relevance
/third_party/elfutils/tests/ |
D | elfstrmerge.c | 44 static Elf *elfnew = NULL; variable 81 elf_end (elfnew); in release() 393 elfnew = elf_begin (fdnew, ELF_C_WRITE, NULL); in main() 394 if (elfnew == NULL) in main() 398 if (gelf_newehdr (elfnew, gelf_getclass (elf)) == 0) in main() 401 if (gelf_getehdr (elfnew, &newehdr) == NULL) in main() 418 Elf_Scn *zscn = elf_getscn (elfnew, 0); in main() 429 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in main() 435 if (gelf_newphdr (elfnew, phnum) == 0) in main() 444 if (gelf_update_phdr (elfnew, cnt, phdr) == 0) in main() [all …]
|
/third_party/elfutils/src/ |
D | elfcompress.c | 282 Elf *elfnew = NULL; in process_file() local 564 elfnew = elf_begin (fdnew, ELF_C_WRITE, NULL); in process_file() 565 if (elfnew == NULL) in process_file() 573 if (gelf_newehdr (elfnew, gelf_getclass (elf)) == 0) in process_file() 580 if (gelf_getehdr (elfnew, &newehdr) == NULL) in process_file() 593 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in process_file() 602 if (gelf_newphdr (elfnew, phnum) == 0) in process_file() 617 if (gelf_update_phdr (elfnew, cnt, phdr) == 0) in process_file() 832 Elf_Scn *newscn = elf_newscn (elfnew); in process_file() 938 size_t elsize = gelf_fsize (elfnew, ELF_T_SYM, 1, EV_CURRENT); in process_file() [all …]
|