Lines Matching defs:lml

105 analyze_lmc(Lm_list *lml, Aliste nlmco, Rt_map *nlmp, Rt_map *clmp,
120 nlmc = (Lm_cntl *)alist_item_by_offset(lml->lm_lists, nlmco);
152 if ((olmp = elf_obj_fini(lml, lmp, clmp,
154 if (lml->lm_flags & LML_FLG_TRC_ENABLE)
183 if (LM_NEEDED(lmp)(lml, nlmco, lmp, in_nfavl) == 0) {
184 if (lml->lm_flags & LML_FLG_TRC_ENABLE)
211 nlmc = (Lm_cntl *)alist_item_by_offset(lml->lm_lists, nlmco);
219 nlmc = (Lm_cntl *)alist_item_by_offset(lml->lm_lists, nlmco);
287 relocate_so(Lm_list *lml, Rt_map *lmp, int *relocated, int now, int *in_nfavl)
296 if (((lml->lm_flags & LML_FLG_TRC_ENABLE) == 0) ||
297 (lml->lm_flags & LML_FLG_TRC_WARN)) {
303 ((lml->lm_flags & LML_FLG_TRC_ENABLE) == 0))
314 ((lml->lm_flags & LML_FLG_TRC_ENABLE) == 0))
338 _relocate_lmc(Lm_list *lml, Aliste lmco, Rt_map *nlmp, int *relocated,
361 if (relocate_so(lml, lmp, relocated, 0, in_nfavl) == 0)
383 lml->lm_init++;
384 lml->lm_flags |= LML_FLG_OBJADDED;
404 (((lml->lm_flags & LML_FLG_TRC_ENABLE) == 0) ||
405 (lml->lm_flags & LML_FLG_TRC_WARN))) {
424 DBG_CALL(Dbg_util_nl(lml, DBG_NL_STD));
456 DBG_CALL(Dbg_util_nl(lml, DBG_NL_STD));
465 relocate_lmc(Lm_list *lml, Aliste nlmco, Rt_map *clmp, Rt_map *nlmp,
482 nlmc = (Lm_cntl *)alist_item_by_offset(lml->lm_lists, nlmco);
522 lml->lm_flags |= LML_FLG_STARTREL;
532 lret = _relocate_lmc(lml, nlmco, nlmp, &relocated, in_nfavl);
534 remove_lmc(lml, clmp, nlmco, NAME(nlmp));
541 nlmc = (Lm_cntl *)alist_item_by_offset(lml->lm_lists, nlmco);
546 plmco = nlmco - lml->lm_lists->al_size;
548 plmc = (Lm_cntl *)alist_item_by_offset(lml->lm_lists, plmco);
560 lm_move(lml, nlmco, plmco, nlmc, plmc);
608 if (relocate_so(lml, lmp, 0, 1, in_nfavl) == 0)
618 nlmc = (Lm_cntl *)alist_item_by_offset(lml->lm_lists, nlmco);
620 plmc = (Lm_cntl *)alist_item_by_offset(lml->lm_lists, plmco);
622 lm_move(lml, nlmco, plmco, nlmc, plmc);
634 nlmc = (Lm_cntl *)alist_item_by_offset(lml->lm_lists, nlmco);
784 is_so_loaded(Lm_list *lml, const char *name, int *in_nfavl)
799 if (((lmp = fpavl_recorded(lml, name, hash, &where)) != NULL) &&
824 for (ALIST_TRAVERSE(lml->lm_lists, idx, lmc)) {
911 Lm_list *lml = LIST(lmp);
977 ((lml->lm_flags & LML_FLG_OBJADDED) || ((pmode & RTLD_NOW) &&
1026 is_devinode_loaded(rtld_stat_t *status, Lm_list *lml, const char *name,
1039 Lm_list *lml;
1041 for (APLIST_TRAVERSE(dynlm_list, idx, lml)) {
1042 Rt_map *nlmp = lml->lm_head;
1058 for (ALIST_TRAVERSE(lml->lm_lists, idx, lmc)) {
1070 if (lml->lm_flags & LML_FLG_TRC_VERBOSE) {
1096 file_notfound(Lm_list *lml, const char *name, Rt_map *clmp, uint_t flags,
1105 if (lml->lm_flags & LML_FLG_TRC_ENABLE) {
1111 ((lml->lm_flags & LML_FLG_TRC_VERBOSE) == 0))
1126 eprintf(lml, ERR_FATAL, MSG_INTL(err_reject[rej->rej_type]),
1133 eprintf(lml, ERR_FATAL, MSG_INTL(MSG_SEC_OPEN), name);
1135 eprintf(lml, ERR_FATAL, MSG_INTL(MSG_SYS_OPEN), name,
1140 file_open(int err, Lm_list *lml, Rt_map *clmp, uint_t flags, Fdesc *fdp,
1155 DBG_CALL(Dbg_file_config_obj(lml, oname, 0, nname));
1164 if ((nlmp = fpavl_recorded(lml, nname, hash,
1209 DBG_CALL(Dbg_file_rejected(lml, rej, M_MACH));
1232 fpavl_recorded(lml, path, 0, 0)) != NULL) {
1259 if (nlmp = is_devinode_loaded(&status, lml, nname, flags)) {
1281 (fpavl_insert(lml, nlmp,
1309 fdp->fd_ftp = map_obj(lml, fdp, status.st_size, nname,
1343 DBG_CALL(Dbg_file_rejected(lml, rej, M_MACH));
1352 find_path(Lm_list *lml, Rt_map *clmp, uint_t flags, Fdesc *fdp, Rej_desc *rej,
1380 (rtld_flags & RT_FL_OBJALT) && (lml == &lml_main)) {
1392 DBG_CALL(Dbg_libs_found(lml, aname,
1394 ret = file_open(0, lml, clmp, flags, fdp,
1404 DBG_CALL(Dbg_libs_found(lml, oname, 0));
1406 return (file_open(err, lml, clmp, flags, fdp, rej, in_nfavl));
1413 _find_file(Lm_list *lml, Rt_map *clmp, uint_t flags, Fdesc *fdp, Rej_desc *rej,
1418 DBG_CALL(Dbg_libs_found(lml, nname, aflag));
1419 if ((lml->lm_flags & LML_FLG_TRC_SEARCH) &&
1430 if ((lml->lm_tflags | AFLAGS(clmp)) & LML_TFLG_AUD_OBJSEARCH) {
1435 DBG_CALL(Dbg_audit_terminate(lml, nname));
1444 return (file_open(0, lml, clmp, flags, fdp, rej, in_nfavl));
1448 find_file(Lm_list *lml, Rt_map *clmp, uint_t flags, Fdesc *fdp, Rej_desc *rej,
1516 (lml == &lml_main)) {
1528 ret = _find_file(lml, clmp, flags, fdp,
1544 eprintf(lml, ERR_FATAL, MSG_INTL(MSG_SYS_OPEN), oname,
1552 return (_find_file(lml, clmp, flags, fdp, rej, pdp, 0, in_nfavl));
1636 map_obj(Lm_list *lml, Fdesc *fdp, size_t fsize, const char *name, int fd,
1721 DBG_CALL(Dbg_file_mmapobj(lml, name, smpp, mapnum));
1764 load_file(Lm_list *lml, Aliste lmco, Rt_map *clmp, Fdesc *fdp, int *in_nfavl)
1814 if ((nlmp = elf_obj_file(lml, lmco, clmp, nname, hmpp, ompp,
1833 if ((nlmp = ((fdp->fd_ftp)->fct_new_lmp)(lml, lmco, fdp, addr,
1867 if ((NAME(nlmp)[0] == '/') && (fpavl_insert(lml, nlmp, NAME(nlmp),
1869 remove_so(lml, nlmp, clmp);
1873 (fpavl_insert(lml, nlmp, PATHNAME(nlmp), 0) == 0)) {
1874 remove_so(lml, nlmp, clmp);
1921 remove_so(lml, nlmp, clmp);
1939 load_so(Lm_list *lml, Aliste lmco, Rt_map *clmp, uint_t flags,
1995 (void) fpavl_recorded(lml, fdp->fd_nname, 0,
2001 if (find_path(lml, clmp, flags, fdp, &_rej, in_nfavl) == 0) {
2047 if (find_file(lml, clmp, flags, &fd, &_rej, pdp,
2059 ((lml->lm_flags & LML_FLG_RTLDLM) == 0))
2083 return (is_so_loaded(lml, oname, in_nfavl));
2093 if (lml->lm_flags & LML_FLG_TRC_ENABLE) {
2101 return (load_file(lml, lmco, clmp, fdp, in_nfavl));
2108 load_trace(Lm_list *lml, Pdesc *pdp, Rt_map *clmp, Fdesc *fdp)
2112 DBG_CALL(Dbg_libs_find(lml, name));
2117 if ((lml->lm_flags & (LML_FLG_TRC_VERBOSE | LML_FLG_TRC_SEARCH)) &&
2132 ((lml->lm_tflags | AFLAGS(clmp)) & LML_TFLG_AUD_ACTIVITY))
2135 if ((lml->lm_tflags | AFLAGS(clmp)) & LML_TFLG_AUD_OBJSEARCH) {
2143 DBG_CALL(Dbg_audit_terminate(lml, name));
2163 load_finish(Lm_list *lml, const char *name, Rt_map *clmp, int nmode,
2283 if ((ghp = hdl_create(lml, nlmp, clmp, hflags, rdflags,
2414 load_path(Lm_list *lml, Aliste lmco, Rt_map *clmp, int nmode, uint_t flags,
2432 if ((nlmp = load_so(lml, lmco, clmp, flags, fdp, rej,
2460 DBG_CALL(Dbg_file_rejected(lml, &_rej, M_MACH));
2462 remove_so(lml, nlmp, clmp);
2471 if (nlmp = is_so_loaded(lml, name, in_nfavl)) {
2472 if ((lml->lm_flags & LML_FLG_TRC_VERBOSE) &&
2494 DBG_CALL(Dbg_file_rejected(lml, &_rej, M_MACH));
2503 if (load_finish(lml, name, clmp, nmode, flags, hdl, nlmp) == 0) {
2512 remove_so(lml, nlmp, clmp);
2525 if ((lml->lm_tflags | AFLAGS(clmp) | AFLAGS(nlmp)) &
2528 remove_so(lml, nlmp, clmp);
2543 load_one(Lm_list *lml, Aliste lmco, Alist *palp, Rt_map *clmp, int mode,
2559 lmp = load_cap(lml, lmco, pdp->pd_pname, clmp,
2569 if (load_trace(lml, pdp, clmp, &fd) == NULL)
2575 lmp = load_path(lml, lmco, clmp, mode, flags, hdl, &fd,
2592 file_notfound(lml, name, clmp, flags, &rej);
2627 Lm_list *lml;
2660 lml = LIST(clmp);
2661 lmp = lml->lm_head;
2718 if ((lml->lm_flags & LML_FLG_INTRPOSE) == 0)
2728 lmp = lml->lm_head;
2953 Lm_list *lml = LIST(clmp);
2989 if ((lml->lm_flags & LML_FLG_TRC_WARN) &&
3023 (((lml->lm_tflags & LML_TFLG_NODIRECT) == 0) &&
3100 for (ALIST_TRAVERSE_BY_OFFSET(lml->lm_lists, off, lmc)) {
3129 lml = LIST(lmp);
3130 if ((sl.sl_flags & LKUP_WEAK) || (lml->lm_lazy == 0))
3133 DBG_CALL(Dbg_syms_lazy_rescan(lml, name));
3147 for (ALIST_TRAVERSE(lml->lm_lists, idx, lmc)) {