Lines Matching defs:oelf

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