Home
last modified time | relevance | path

Searched refs:clmp (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Ddlfcns.c104 Rt_map *clmp; in dlerror() local
109 clmp = _caller(caller(), CL_EXECDEF); in dlerror()
111 DBG_CALL(Dbg_dl_dlerror(clmp, lasterr)); in dlerror()
117 leave(LIST(clmp), 0); in dlerror()
201 hdl_create(Lm_list *lml, Rt_map *rlmp, Rt_map *clmp, uint_t hflags, in hdl_create() argument
369 if (clmp && (hdl_add(ghp, clmp, cdflags, NULL) == NULL)) in hdl_create()
458 dlclose_core(Grp_hdl *ghp, Rt_map *clmp, Lm_list *lml) in dlclose_core() argument
474 DBG_CALL(Dbg_dl_dlclose(clmp, MSG_ORIG(MSG_STR_ZERO), in dlclose_core()
477 DBG_CALL(Dbg_dl_dlclose(clmp, NAME(ghp->gh_ownlmp), in dlclose_core()
516 error = remove_hdl(ghp, clmp, NULL); in dlclose_core()
[all …]
H A Daudit.c264 _audit_objsearch(APlist *list, char *oname, Rt_map *clmp, uint_t flags) in _audit_objsearch() argument
268 Lm_list *clml = LIST(clmp); in _audit_objsearch()
278 if ((acp = _audit_client(AUDINFO(clmp), almp)) == NULL) in _audit_objsearch()
306 audit_objsearch(Rt_map *clmp, const char *name, uint_t flags) in audit_objsearch() argument
318 clmp, flags); in audit_objsearch()
319 if (nname && AUDITORS(clmp) && in audit_objsearch()
320 (AUDITORS(clmp)->ad_flags & LML_TFLG_AUD_OBJSEARCH)) in audit_objsearch()
321 nname = _audit_objsearch(AUDITORS(clmp)->ad_list, nname, in audit_objsearch()
322 clmp, flags); in audit_objsearch()
326 DBG_CALL(Dbg_libs_audit(LIST(clmp), name, nname)); in audit_objsearch()
[all …]
H A Danalyze.c104 analyze_lmc(Lm_list *lml, Aliste nlmco, Rt_map *nlmp, Rt_map *clmp, in analyze_lmc() argument
151 if ((olmp = elf_obj_fini(lml, lmp, clmp, in analyze_lmc()
464 relocate_lmc(Lm_list *lml, Aliste nlmco, Rt_map *clmp, Rt_map *nlmp, in relocate_lmc() argument
533 remove_lmc(lml, clmp, nlmco, NAME(nlmp)); in relocate_lmc()
842 trace_so(Rt_map *clmp, Rej_desc *rej, const char *name, const char *path, in trace_so() argument
855 if (FLAGS1(clmp) & FL1_RT_LDDSTUB) in trace_so()
1095 file_notfound(Lm_list *lml, const char *name, Rt_map *clmp, uint_t flags, in file_notfound() argument
1114 trace_so(clmp, rej, name, 0, 0, in file_notfound()
1117 trace_so(clmp, rej, name, 0, 0, in file_notfound()
1139 file_open(int err, Lm_list *lml, Rt_map *clmp, uint_t flags, Fdesc *fdp, in file_open() argument
[all …]
H A Delf.c134 elf_fix_name(const char *name, Rt_map *clmp, Alist **alpp, Aliste alni, in elf_fix_name() argument
137 return (expand_paths(clmp, name, alpp, alni, orig, 0)); in elf_fix_name()
335 elf_lazy_load(Rt_map *clmp, Slookup *slp, uint_t ndx, const char *sym, in elf_lazy_load() argument
340 Dyninfo *dip = &DYNINFO(clmp)[ndx], *pdip; in elf_lazy_load()
342 Lm_list *lml = LIST(clmp); in elf_lazy_load()
368 DBG_CALL(Dbg_file_lazyload(clmp, name, sym)); in elf_lazy_load()
393 if (elf_fix_name(name, clmp, &palp, AL_CNT_NEEDED, 0) == 0) in elf_lazy_load()
408 load_one(lml, lmco, palp, clmp, MODE(clmp), flags, hdl, in_nfavl); in elf_lazy_load()
416 if (--LAZY(clmp) == 0) in elf_lazy_load()
417 LIST(clmp)->lm_lazy--; in elf_lazy_load()
[all …]
H A Dremove.c212 remove_so(Lm_list *lml, Rt_map *lmp, Rt_map *clmp) in remove_so() argument
223 lm_delete(lml, lmp, clmp); in remove_so()
445 Rt_map *clmp = bdp->b_caller; in remove_lists() local
457 if (lazy && ((dip = DYNINFO(clmp)) != NULL)) { in remove_lists()
458 uint_t cnt, max = DYNINFOCNT(clmp); in remove_lists()
467 if (LAZY(clmp)++ == 0) in remove_lists()
468 LIST(clmp)->lm_lazy++; in remove_lists()
473 (void) aplist_delete_value(DEPENDS(clmp), bdp); in remove_lists()
508 remove_incomplete(Lm_list *lml, Aliste lmco, Rt_map *clmp) in remove_incomplete() argument
524 if ((lml->lm_tflags | AFLAGS(clmp)) & LML_TFLG_AUD_OBJCLOSE) { in remove_incomplete()
[all …]
H A Dpaths.c829 is_path_secure(char *opath, Rt_map *clmp, uint_t info, uint_t flags) in is_path_secure() argument
834 Lm_list *lml = LIST(clmp); in is_path_secure()
939 salpp = LM_SECURE_DIRS(LIST(clmp)->lm_head)(); in is_path_secure()
953 if ((FLAGS1(clmp) & FL1_RT_LDDSTUB) == 0) in is_path_secure()
969 if ((FLAGS1(clmp) & FL1_RT_LDDSTUB) == 0) { in is_path_secure()
974 opath, NAME(clmp)); in is_path_secure()
992 ((FLAGS1(clmp) & FL1_RT_LDDSTUB) == 0)) in is_path_secure()
1030 expand_paths(Rt_map *clmp, const char *list, Alist **alpp, Aliste alni, in expand_paths() argument
1091 clmp)) == 0) in expand_paths()
1101 (is_path_secure(str, clmp, orig, tkns) == 0)) in expand_paths()
[all …]
H A Dsetup.c90 preload(const char *str, Rt_map *mlmp, Rt_map **clmp) in preload() argument
106 (FLAGS1(*clmp) & FL1_RT_LDDSTUB); in preload()
135 if (expand_paths(*clmp, ptr, &palp, AL_CNT_NEEDED, in preload()
137 nlmp = load_one(&lml_main, ALIST_OFF_DATA, palp, *clmp, in preload()
142 if (nlmp && (bind_one(*clmp, nlmp, BND_NEEDED) == 0)) in preload()
155 if (bind_one(*clmp, nlmp, BND_REFER) == 0) in preload()
168 *clmp = nlmp; in preload()
198 Rt_map *rlmp, *mlmp, *clmp, **tobj = NULL; in setup() local
969 clmp = mlmp; in setup()
970 if (rpl_preload && (preload(rpl_preload, mlmp, &clmp) == 0)) in setup()
[all …]
H A Dtsort.c216 Rt_map *clmp = bdp->b_caller; in sort_scc() local
221 if (CYCGROUP(lmp) != CYCGROUP(clmp)) in sort_scc()
308 _dep_visit(Lm_list *lml, int min, Rt_map *clmp, Rt_map *dlmp, uint_t bflags, in _dep_visit() argument
368 if ((_min = dep_visit(lml, clmp, bflags, dlmp, in _dep_visit()
380 DBG_CALL(Dbg_util_edge_out(clmp, sort->s_stack[_min])); in _dep_visit()
390 dep_visit(Lm_list *lml, Rt_map *clmp, uint_t cbflags, Rt_map *lmp, Sort *sort, in dep_visit() argument
404 DBG_CALL(Dbg_util_edge_in(lml, clmp, cbflags, lmp, min, flag)); in dep_visit()
H A Dobject.c156 elf_obj_file(Lm_list *lml, Aliste lmco, Rt_map *clmp, const char *name, in elf_obj_file() argument
179 remove_so(lml, olmp, clmp); in elf_obj_file()
189 remove_so(lml, olmp, clmp); in elf_obj_file()
231 elf_obj_fini(Lm_list *lml, Rt_map *lmp, Rt_map *clmp, int *in_nfavl) in elf_obj_fini() argument
331 ofl->ofl_size, NULL, clmp, in_nfavl)) == NULL) in elf_obj_fini()
H A Dutil.c618 is_dep_init(Rt_map *dlmp, Rt_map *clmp) in is_dep_init() argument
626 if ((LIST(clmp)->lm_tflags & LML_TFLG_NOAUDIT) && in is_dep_init()
630 if ((dlmp == clmp) || (rtld_flags & RT_FL_INITFIRST)) in is_dep_init()
801 call_fini(Lm_list *lml, Rt_map **tobj, Rt_map *clmp) in call_fini() argument
845 audit_objclose(lmp, clmp); in call_fini()
1177 lm_delete(Lm_list *lml, Rt_map *lmp, Rt_map *clmp) in lm_delete() argument
1199 if (clmp && (aud_activity || in lm_delete()
1200 ((LIST(clmp)->lm_tflags | AFLAGS(clmp)) & LML_TFLG_AUD_ACTIVITY))) in lm_delete()
1201 audit_activity(clmp, LA_ACT_DELETE); in lm_delete()
3345 Rt_map *clmp; in unused() local
[all …]
H A Dcap.c556 cap_dir(Alist **fdalpp, Lm_list *lml, const char *dname, Rt_map *clmp, in cap_dir() argument
619 if (load_trace(lml, &pd, clmp, &fd) == NULL) in cap_dir()
628 if (find_path(lml, clmp, flags, &fd, &_rej, in_nfavl) == 0) { in cap_dir()
696 Rt_map *flmp, Rt_map *clmp, const char *ref, int mode, uint_t flags, in cap_filtees() argument
774 clmp, in_nfavl)) == NULL) || in cap_filtees()
825 load_cap(Lm_list *lml, Aliste lmco, const char *dir, Rt_map *clmp, in load_cap() argument
837 if (cap_dir(&fdalp, lml, dir, clmp, flags, rej, in_nfavl) == 0) in load_cap()
847 if ((found == 0) && ((lmp = load_path(lml, lmco, clmp, mode, in load_cap()
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Ddlfcns.c32 Dbg_dl_iphdr_enter(Rt_map *clmp, u_longlong_t cnt_map, u_longlong_t cnt_unmap) in Dbg_dl_iphdr_enter() argument
34 Lm_list *lml = LIST(clmp); in Dbg_dl_iphdr_enter()
40 dbg_print(lml, MSG_INTL(MSG_DL_IPHDR_ENTER), NAME(clmp)); in Dbg_dl_iphdr_enter()
79 Dbg_dl_dlopen(Rt_map *clmp, const char *name, int *in_nfavl, int mode) in Dbg_dl_dlopen() argument
82 Lm_list *lml = LIST(clmp); in Dbg_dl_dlopen()
101 dbg_print(lml, MSG_INTL(MSG_DL_DLOPEN), name, NAME(clmp), retry, in Dbg_dl_dlopen()
106 Dbg_dl_dlclose(Rt_map *clmp, const char *name, int flag) in Dbg_dl_dlclose() argument
109 Lm_list *lml = LIST(clmp); in Dbg_dl_dlclose()
120 dbg_print(lml, MSG_INTL(MSG_DL_DLCLOSE), name, NAME(clmp), str); in Dbg_dl_dlclose()
124 Dbg_dl_dldump(Rt_map *clmp, const char *ipath, const char *opath, int flags) in Dbg_dl_dldump() argument
[all …]
H A Dutil.c204 Dbg_util_edge_in(Lm_list *lml, Rt_map *clmp, uint_t flags, Rt_map *dlmp, in Dbg_util_edge_in() argument
220 if ((clmp == 0) || (ectoggle == 0)) in Dbg_util_edge_in()
222 if (clmp == 0) { in Dbg_util_edge_in()
231 NAME(clmp), conv_bnd_type(flags, &bnd_type_buf)); in Dbg_util_edge_in()
237 Dbg_util_edge_out(Rt_map *clmp, Rt_map *dlmp) in Dbg_util_edge_out() argument
244 dbg_print(LIST(clmp), MSG_INTL(MSG_UTL_EDGE_OUT), SORTVAL(clmp), in Dbg_util_edge_out()
245 NAME(clmp), NAME(dlmp)); in Dbg_util_edge_out()
H A Daudit.c33 Dbg_audit_lib(Rt_map *clmp, const char *lib, int type) in Dbg_audit_lib() argument
35 Lm_list *clml = LIST(clmp); in Dbg_audit_lib()
55 dbg_print(clml, MSG_INTL(MSG_AUD_LIB), lib, NAME(clmp), str); in Dbg_audit_lib()
H A Dfiles.c380 Dbg_file_lazyload(Rt_map *clmp, const char *fname, const char *sname) in Dbg_file_lazyload() argument
382 Lm_list *lml = LIST(clmp); in Dbg_file_lazyload()
388 dbg_print(lml, MSG_INTL(MSG_FIL_LAZYLOAD), fname, NAME(clmp), in Dbg_file_lazyload()