Home
last modified time | relevance | path

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

/titanic_50/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()
200 hdl_create(Lm_list *lml, Rt_map *rlmp, Rt_map *clmp, uint_t hflags, in hdl_create() argument
368 if (clmp && (hdl_add(ghp, clmp, cdflags, NULL) == NULL)) in hdl_create()
457 dlclose_core(Grp_hdl *ghp, Rt_map *clmp, Lm_list *lml) in dlclose_core() argument
473 DBG_CALL(Dbg_dl_dlclose(clmp, MSG_ORIG(MSG_STR_ZERO), in dlclose_core()
476 DBG_CALL(Dbg_dl_dlclose(clmp, NAME(ghp->gh_ownlmp), in dlclose_core()
515 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.c105 analyze_lmc(Lm_list *lml, Aliste nlmco, Rt_map *nlmp, Rt_map *clmp, in analyze_lmc() argument
152 if ((olmp = elf_obj_fini(lml, lmp, clmp, in analyze_lmc()
465 relocate_lmc(Lm_list *lml, Aliste nlmco, Rt_map *clmp, Rt_map *nlmp, in relocate_lmc() argument
534 remove_lmc(lml, clmp, nlmco, NAME(nlmp)); in relocate_lmc()
843 trace_so(Rt_map *clmp, Rej_desc *rej, const char *name, const char *path, in trace_so() argument
856 if (FLAGS1(clmp) & FL1_RT_LDDSTUB) in trace_so()
1096 file_notfound(Lm_list *lml, const char *name, Rt_map *clmp, uint_t flags, in file_notfound() argument
1115 trace_so(clmp, rej, name, 0, 0, in file_notfound()
1118 trace_so(clmp, rej, name, 0, 0, in file_notfound()
1140 file_open(int err, Lm_list *lml, Rt_map *clmp, uint_t flags, Fdesc *fdp, in file_open() argument
[all …]
H A Delf.c132 elf_fix_name(const char *name, Rt_map *clmp, Alist **alpp, Aliste alni, in elf_fix_name() argument
150 DBG_CALL(Dbg_file_fixname(LIST(clmp), name, in elf_fix_name()
163 return (expand_paths(clmp, name, alpp, alni, orig, 0)); in elf_fix_name()
361 elf_lazy_load(Rt_map *clmp, Slookup *slp, uint_t ndx, const char *sym, in elf_lazy_load() argument
366 Dyninfo *dip = &DYNINFO(clmp)[ndx], *pdip; in elf_lazy_load()
368 Lm_list *lml = LIST(clmp); in elf_lazy_load()
394 DBG_CALL(Dbg_file_lazyload(clmp, name, sym)); in elf_lazy_load()
419 if (elf_fix_name(name, clmp, &palp, AL_CNT_NEEDED, 0) == 0) in elf_lazy_load()
434 load_one(lml, lmco, palp, clmp, MODE(clmp), flags, hdl, in_nfavl); in elf_lazy_load()
442 if (--LAZY(clmp) == 0) in elf_lazy_load()
[all …]
H A Da.out.c126 aout_fix_name(const char *oname, Rt_map *clmp, Alist **alpp, Aliste alni, in aout_fix_name() argument
157 DBG_CALL(Dbg_file_fixname(LIST(clmp), nname, oname)); in aout_fix_name()
197 aout_needed(Lm_list *lml, Aliste lmco, Rt_map *clmp, int *in_nfavl) in aout_needed() argument
202 for (need = &TEXTBASE(clmp)[AOUTDYN(clmp)->v2->ld_need]; in aout_needed()
203 need != &TEXTBASE(clmp)[0]; in aout_needed()
204 need = &TEXTBASE(clmp)[((Lnk_obj *)(need))->lo_next]) { in aout_needed()
208 name = &TEXTBASE(clmp)[((Lnk_obj *)(need))->lo_name]; in aout_needed()
249 for (pdp = get_next_dir(&sd, clmp, 0); pdp; in aout_needed()
250 pdp = get_next_dir(&sd, clmp, 0)) { in aout_needed()
266 if (expand_paths(clmp, name, &palp, in aout_needed()
[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.c828 is_path_secure(char *opath, Rt_map *clmp, uint_t info, uint_t flags) in is_path_secure() argument
833 Lm_list *lml = LIST(clmp); in is_path_secure()
938 salpp = LM_SECURE_DIRS(LIST(clmp)->lm_head)(); in is_path_secure()
952 if ((FLAGS1(clmp) & FL1_RT_LDDSTUB) == 0) in is_path_secure()
968 if ((FLAGS1(clmp) & FL1_RT_LDDSTUB) == 0) { in is_path_secure()
973 opath, NAME(clmp)); in is_path_secure()
991 ((FLAGS1(clmp) & FL1_RT_LDDSTUB) == 0)) in is_path_secure()
1029 expand_paths(Rt_map *clmp, const char *list, Alist **alpp, Aliste alni, in expand_paths() argument
1090 clmp)) == 0) in expand_paths()
1100 (is_path_secure(str, clmp, orig, tkns) == 0)) in expand_paths()
[all …]
H A Dsetup.c92 preload(const char *str, Rt_map *mlmp, Rt_map **clmp) in preload() argument
108 (FLAGS1(*clmp) & FL1_RT_LDDSTUB); in preload()
137 if (expand_paths(*clmp, ptr, &palp, AL_CNT_NEEDED, in preload()
139 nlmp = load_one(&lml_main, ALIST_OFF_DATA, palp, *clmp, in preload()
144 if (nlmp && (bind_one(*clmp, nlmp, BND_NEEDED) == 0)) in preload()
157 if (bind_one(*clmp, nlmp, BND_REFER) == 0) in preload()
170 *clmp = nlmp; in preload()
200 Rt_map *rlmp, *mlmp, *clmp, **tobj = NULL; in setup() local
1033 clmp = mlmp; in setup()
1034 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.c158 elf_obj_file(Lm_list *lml, Aliste lmco, Rt_map *clmp, const char *name, in elf_obj_file() argument
181 remove_so(lml, olmp, clmp); in elf_obj_file()
191 remove_so(lml, olmp, clmp); in elf_obj_file()
233 elf_obj_fini(Lm_list *lml, Rt_map *lmp, Rt_map *clmp, int *in_nfavl) in elf_obj_fini() argument
333 ofl->ofl_size, NULL, clmp, in_nfavl)) == NULL) in elf_obj_fini()
H A Dutil.c615 is_dep_init(Rt_map *dlmp, Rt_map *clmp) in is_dep_init() argument
623 if ((LIST(clmp)->lm_tflags & LML_TFLG_NOAUDIT) && in is_dep_init()
627 if ((dlmp == clmp) || (rtld_flags & RT_FL_INITFIRST)) in is_dep_init()
798 call_fini(Lm_list *lml, Rt_map **tobj, Rt_map *clmp) in call_fini() argument
842 audit_objclose(lmp, clmp); in call_fini()
1174 lm_delete(Lm_list *lml, Rt_map *lmp, Rt_map *clmp) in lm_delete() argument
1196 if (clmp && (aud_activity || in lm_delete()
1197 ((LIST(clmp)->lm_tflags | AFLAGS(clmp)) & LML_TFLG_AUD_ACTIVITY))) in lm_delete()
1198 audit_activity(clmp, LA_ACT_DELETE); in lm_delete()
3337 Rt_map *clmp; in unused() local
[all …]
H A Dcap.c515 cap_dir(Alist **fdalpp, Lm_list *lml, const char *dname, Rt_map *clmp, in cap_dir() argument
578 if (load_trace(lml, &pd, clmp, &fd) == NULL) in cap_dir()
587 if (find_path(lml, clmp, flags, &fd, &_rej, in_nfavl) == 0) { in cap_dir()
655 Rt_map *flmp, Rt_map *clmp, const char *ref, int mode, uint_t flags, in cap_filtees() argument
733 clmp, in_nfavl)) == NULL) || in cap_filtees()
784 load_cap(Lm_list *lml, Aliste lmco, const char *dir, Rt_map *clmp, in load_cap() argument
796 if (cap_dir(&fdalp, lml, dir, clmp, flags, rej, in_nfavl) == 0) in load_cap()
806 if ((found == 0) && ((lmp = load_path(lml, lmco, clmp, mode, in load_cap()
/titanic_50/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.c202 Dbg_util_edge_in(Lm_list *lml, Rt_map *clmp, uint_t flags, Rt_map *dlmp, in Dbg_util_edge_in() argument
218 if ((clmp == 0) || (ectoggle == 0)) in Dbg_util_edge_in()
220 if (clmp == 0) { in Dbg_util_edge_in()
229 NAME(clmp), conv_bnd_type(flags, &bnd_type_buf)); in Dbg_util_edge_in()
235 Dbg_util_edge_out(Rt_map *clmp, Rt_map *dlmp) in Dbg_util_edge_out() argument
242 dbg_print(LIST(clmp), MSG_INTL(MSG_UTL_EDGE_OUT), SORTVAL(clmp), in Dbg_util_edge_out()
243 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.c393 Dbg_file_lazyload(Rt_map *clmp, const char *fname, const char *sname) in Dbg_file_lazyload() argument
395 Lm_list *lml = LIST(clmp); in Dbg_file_lazyload()
401 dbg_print(lml, MSG_INTL(MSG_FIL_LAZYLOAD), fname, NAME(clmp), in Dbg_file_lazyload()