Lines Matching defs:mlmp
89 preload(const char *str, Rt_map *mlmp, Rt_map **clmp)
135 MODE(mlmp), flags, 0, NULL);
196 Rt_map *rlmp, *mlmp, *clmp, **tobj = NULL;
484 if ((mlmp = load_file(&lml_main, ALIST_OFF_DATA, NULL, &fdm,
497 mmapobj_result_t *mpp = MMAPS(mlmp);
498 uint_t mnum, mapnum = MMAPCNT(mlmp);
547 if ((mlmp = aout_new_lmp(&lml_main, ALIST_OFF_DATA,
559 MSIZE(mlmp) =
562 MMAPS(mlmp) = mpp;
563 MMAPCNT(mlmp) = 2;
564 PADSTART(mlmp) = (ulong_t)mpp->mr_addr;
565 PADIMLEN(mlmp) = mpp->mr_msize;
681 if ((mlmp = elf_new_lmp(&lml_main, ALIST_OFF_DATA,
686 MMAPS(mlmp) = fmpp;
687 MMAPCNT(mlmp) = mapnum;
688 PADSTART(mlmp) = (ulong_t)fmpp->mr_addr;
689 PADIMLEN(mlmp) = (ulong_t)fmpp->mr_addr +
731 (void) fullpath(mlmp, 0);
742 FLAGS(mlmp) |= (FLG_RT_ISMAIN | FLG_RT_MODESET);
743 FLAGS1(mlmp) |= FL1_RT_USED;
751 INIT(mlmp) = FINI(mlmp) = NULL;
752 if ((INITARRAY(mlmp) == NULL) && (FINIARRAY(mlmp) == NULL))
753 FLAGS1(mlmp) |= FL1_RT_NOINIFIN;
759 FLAGS1(mlmp) |= FL1_RT_LDDSTUB;
804 if (rtld_stat(PATHNAME(mlmp), &status) == 0) {
805 STDEV(mlmp) = status.st_dev;
806 STINO(mlmp) = status.st_ino;
813 if ((features = elf_config(mlmp, (aoutdyn != 0))) == -1)
824 if (CAPSET(mlmp).sc_sf_1 & SF1_SUNW_ADDR32)
834 if (cap_check_lmp(mlmp, &rej) == 0) {
838 NAME(mlmp), rej.rej_str);
843 NAME(mlmp), rej.rej_str);
862 MODE(mlmp) |= (RTLD_NODELETE | RTLD_GLOBAL | RTLD_WORLD);
865 MODE(mlmp) |= RTLD_CONFGEN;
866 MODE(mlmp) &= ~RTLD_NOW;
870 if ((MODE(mlmp) & RTLD_NOW) == 0) {
872 MODE(mlmp) |= RTLD_NOW;
874 MODE(mlmp) |= RTLD_LAZY;
924 if (THIS_IS_ELF(mlmp)) {
925 DBG_CALL(Dbg_file_elf(&lml_main, PATHNAME(mlmp),
926 ADDR(mlmp), MSIZE(mlmp), LIST(mlmp)->lm_lmidstr,
929 DBG_CALL(Dbg_file_aout(&lml_main, PATHNAME(mlmp),
930 ADDR(mlmp), MSIZE(mlmp), LIST(mlmp)->lm_lmidstr,
959 (void) audit_setup(mlmp, auditors,
966 if (AUDITORS(mlmp)) {
971 if (FLAGS1(mlmp) & FL1_RT_GLOBAUD) {
982 auditors->ad_name = AUDITORS(mlmp)->ad_name;
983 if (audit_setup(mlmp, auditors, 0, NULL) == 0)
990 free((void *) AUDITORS(mlmp));
991 AUDITORS(mlmp) = NULL;
997 if (audit_setup(mlmp, AUDITORS(mlmp), 0, NULL) == 0)
1000 AFLAGS(mlmp) |= AUDITORS(mlmp)->ad_flags;
1011 if ((lml_main.lm_tflags | AFLAGS(mlmp)) & LML_TFLG_AUD_MASK) {
1012 if (((audit_objopen(mlmp, mlmp) == 0) ||
1013 (audit_objopen(mlmp, rlmp) == 0)) &&
1014 (AFLAGS(mlmp) & LML_TFLG_AUD_MASK))
1028 clmp = mlmp;
1029 if (rpl_preload && (preload(rpl_preload, mlmp, &clmp) == 0))
1031 if (prm_preload && (preload(prm_preload, mlmp, &clmp) == 0))
1037 if (analyze_lmc(&lml_main, ALIST_OFF_DATA, mlmp, mlmp, NULL) == NULL)
1058 if (relocate_lmc(&lml_main, ALIST_OFF_DATA, mlmp,
1059 mlmp, NULL) == 0)
1107 ((lml_main.lm_tflags | AFLAGS(mlmp)) & LML_TFLG_AUD_ACTIVITY))
1108 audit_activity(mlmp, LA_ACT_CONSISTENT);
1110 ((lml_main.lm_tflags | AFLAGS(mlmp)) & LML_TFLG_AUD_PREINIT))
1111 audit_preinit(mlmp);
1118 leave(LIST(mlmp), 0);
1119 return (mlmp);
1130 if ((tobj = tsort(mlmp, LIST(mlmp)->lm_init,
1188 if (rt_get_extern(&lml_main, mlmp) == 0)
1192 if (tls_statmod(&lml_main, mlmp) == 0)
1205 call_array(PREINITARRAY(mlmp), (uint_t)PREINITARRAYSZ(mlmp), mlmp,
1215 DBG_CALL(Dbg_util_call_main(mlmp));
1219 leave(LIST(mlmp), 0);
1221 return (mlmp);