Lines Matching refs:oelf
48 cleanup(Elf *ielf, Elf *oelf, Elf *melf, Cache *icache, Cache *mcache, in cleanup() argument
65 if (oelf) in cleanup()
66 (void) elf_end(oelf); in cleanup()
147 Elf * ielf = 0, *oelf = 0, *melf = 0; in rt_dldump() local
237 cleanup(ielf, oelf, melf, icache, mcache, fd, 0); in rt_dldump()
246 cleanup(ielf, oelf, melf, icache, mcache, 0, 0); in rt_dldump()
257 cleanup(ielf, oelf, melf, icache, mcache, 0, 0); in rt_dldump()
260 if ((oelf = elf_begin(fd, ELF_C_WRITE, NULL)) == NULL) { in rt_dldump()
262 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
273 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
314 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
319 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
324 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
338 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
347 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
364 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
370 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
385 cleanup(ielf, oelf, melf, icache, mcache, in rt_dldump()
470 cleanup(ielf, oelf, melf, icache, mcache, in rt_dldump()
534 if ((oehdr = elf_newehdr(oelf)) == NULL) { in rt_dldump()
536 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
551 if ((ophdr = elf_newphdr(oelf, iehdr->e_phnum)) == NULL) { in rt_dldump()
553 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
572 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
592 if ((scn = elf_newscn(oelf)) == NULL) { in rt_dldump()
594 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
599 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
619 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
649 if ((_scn = elf_getscn(oelf, 0)) == NULL) { in rt_dldump()
652 cleanup(ielf, oelf, melf, icache, in rt_dldump()
712 cleanup(ielf, oelf, melf, in rt_dldump()
747 if (elf_update(oelf, ELF_C_WRIMAGE) == -1) { in rt_dldump()
749 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
752 if ((melf = elf_begin(0, ELF_C_IMAGE, oelf)) == NULL) { in rt_dldump()
754 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
759 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
765 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
773 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
783 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
789 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
867 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
875 if (elf_update(oelf, ELF_C_WRITE) == -1) { in rt_dldump()
877 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
881 cleanup(ielf, oelf, melf, icache, mcache, fd, 0); in rt_dldump()