/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | dldump.c | 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() [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/ |
H A D | elfwrap.c | 218 Elf *melf, *oelf; in output() local 255 if ((oelf = elf_begin(fd, ELF_C_WRITE, 0)) == NULL) { in output() 264 if ((ehdr = elf_newehdr(oelf)) == NULL) { in output() 291 if ((scn = elf_newscn(oelf)) == NULL) { in output() 358 if ((elf_update(oelf, ELF_C_WRIMAGE)) == -1) { in output() 367 if ((melf = elf_begin(0, ELF_C_IMAGE, oelf)) == NULL) { in output() 571 if ((elf_update(oelf, ELF_C_WRITE)) == -1) { in output() 576 (void) elf_end(oelf); in output()
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | support.c | 169 int flags, Elf **oelf, Elf *ref, size_t off, const Elf_Kind ekind) in ld_sup_open() argument 177 Elf *nelf = *oelf; in ld_sup_open() 216 if ((npath != *opath) || (nfd != *ofd) || (nelf != *oelf)) { in ld_sup_open() 218 *opath, npath, *ofd, nfd, *oelf, nelf)); in ld_sup_open() 224 *oelf = nelf; in ld_sup_open()
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_elfwrite.c | 382 Elf *ielf, *oelf; in ctf_elffdwrite() local 388 if ((oelf = elf_begin(ofd, ELF_C_WRITE, NULL)) == NULL) in ctf_elffdwrite() 391 ret = ctf_write_elf(fp, ielf, oelf, flags); in ctf_elffdwrite() 394 (void) elf_end(oelf); in ctf_elffdwrite()
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | files.c | 723 const char *nname, int ofd, int nfd, Elf *oelf, Elf *nelf) in Dbg_file_modified() argument 744 if (nelf != oelf) { in Dbg_file_modified() 749 dbg_print(lml, MSG_INTL(MSG_FIL_ELFCHANGE), EC_NATPTR(oelf), in Dbg_file_modified()
|