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
369 if (clmp && (hdl_add(ghp, clmp, cdflags, NULL) == NULL)) in hdl_create()
596 Rt_map *clmp; in dlclose() local
1020 Rt_map *clmp; in dlopen() local
1045 Rt_map *clmp; in dlmopen() local
1209 if (THIS_IS_ELF(clmp) && SYMINTP(clmp)(slp, srp, binfo, NULL)) { in sym_lookup_in_caller()
1213 (ulong_t)SYMTAB(clmp)) / SYMENT(clmp)); in sym_lookup_in_caller()
1249 SLOOKUP_INIT(sl, name, clmp, clmp, ld_entry_cnt, elf_hash(name), in dlsym_core()
1325 DBG_CALL(Dbg_dl_dlsym(clmp, name, in_nfavl, NAME(clmp), in dlsym_core()
1805 lmp = clmp; in dlinfo_core()
[all …]
H A Daudit.c318 clmp, flags); in audit_objsearch()
322 clmp, flags); in audit_objsearch()
409 if (AUDITORS(clmp) && in audit_activity()
411 _audit_activity(AUDITORS(clmp)->ad_list, clmp, flags, TRUE); in audit_activity()
649 if (AUDITORS(clmp)) in audit_objopen()
782 if (clmp) in audit_objclose()
1144 Rt_map *clmp; in audit_preinit() local
1160 if (AUDITORS(clmp) && in audit_preinit()
1162 _audit_preinit(AUDITORS(clmp)->ad_list, clmp, FALSE); in audit_preinit()
1199 AUDITORS(clmp) = NULL; in audit_desc_cleanup()
[all …]
H A Danalyze.c1966 if (clmp == 0) in load_so()
1967 clmp = lml_rtld.lm_head; in load_so()
2166 VERNEED(clmp) && (elf_verify_vers(name, clmp, nlmp) == 0)) in load_finish()
2465 NAME(clmp)); in load_path()
2646 clmp = dlmp; in lookup_sym_interpose()
2648 clmp = slp->sl_cmap; in lookup_sym_interpose()
2650 lml = LIST(clmp); in lookup_sym_interpose()
3059 sl.sl_imap = clmp; in _lookup_sym()
3187 slp->sl_imap = clmp; in lookup_sym()
3230 mode = MODE(clmp); in lookup_sym()
[all …]
H A Delf.c408 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()
448 if (LAZY(clmp)++ == 0) in elf_lazy_load()
487 DBG_CALL(Dbg_ver_need_title(LIST(clmp), NAME(clmp))); in elf_verify_vers()
589 NAME(clmp)); in elf_verify_vers()
617 for (dyn = DYN(clmp), dip = DYNINFO(clmp); in elf_needed()
661 LAZY(clmp)++; in elf_needed()
699 ((nlmp = load_one(lml, lmco, palp, clmp, MODE(clmp), in elf_needed()
729 if (LAZY(clmp)) in elf_needed()
[all …]
H A Dremove.c223 lm_delete(lml, lmp, clmp); in remove_so()
445 Rt_map *clmp = bdp->b_caller; in remove_lists() local
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()
526 audit_objclose(lmp, clmp); in remove_incomplete()
541 remove_so(lml, lmp, clmp); in remove_incomplete()
902 remove_incomplete(lml, lmco, clmp); in remove_lmc()
973 (void) remove_hdl(ghp, clmp, NULL); in remove_lmc()
1342 call_fini(lml, tobj, clmp); in remove_hdl()
[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 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 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
845 audit_objclose(lmp, clmp); in call_fini()
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
3350 clmp = bdp->b_caller; in unused()
3351 if (FLAGS1(clmp) & FL1_RT_LDDSTUB) in unused()
3365 NAME(lmp), NAME(clmp)); in unused()
3470 if (clmp == dlmp) in callable()
[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.c34 Lm_list *lml = LIST(clmp); in Dbg_dl_iphdr_enter()
82 Lm_list *lml = LIST(clmp); in Dbg_dl_dlopen()
109 Lm_list *lml = LIST(clmp); in Dbg_dl_dlclose()
127 Lm_list *lml = LIST(clmp); in Dbg_dl_dldump()
139 Dbg_dl_dlerror(Rt_map *clmp, const char *str) in Dbg_dl_dlerror() argument
141 Lm_list *lml = LIST(clmp); in Dbg_dl_dlerror()
152 Dbg_dl_dladdr(Rt_map *clmp, void *addr) in Dbg_dl_dladdr() argument
154 Lm_list *lml = LIST(clmp); in Dbg_dl_dladdr()
167 const char *str, *retry, *from = NAME(clmp); in Dbg_dl_dlsym()
168 Lm_list *lml = LIST(clmp); in Dbg_dl_dlsym()
[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()