Lines Matching refs:mlmp

92 preload(const char *str, Rt_map *mlmp, Rt_map **clmp)
140 MODE(mlmp), flags, 0, NULL);
200 Rt_map *rlmp, *mlmp, *clmp, **tobj = NULL;
489 if ((mlmp = load_file(&lml_main, ALIST_OFF_DATA, NULL, &fdm,
502 mmapobj_result_t *mpp = MMAPS(mlmp);
503 uint_t mnum, mapnum = MMAPCNT(mlmp);
552 if ((mlmp = aout_new_lmp(&lml_main, ALIST_OFF_DATA,
564 MSIZE(mlmp) =
567 MMAPS(mlmp) = mpp;
568 MMAPCNT(mlmp) = 2;
569 PADSTART(mlmp) = (ulong_t)mpp->mr_addr;
570 PADIMLEN(mlmp) = mpp->mr_msize;
686 if ((mlmp = elf_new_lmp(&lml_main, ALIST_OFF_DATA,
691 MMAPS(mlmp) = fmpp;
692 MMAPCNT(mlmp) = mapnum;
693 PADSTART(mlmp) = (ulong_t)fmpp->mr_addr;
694 PADIMLEN(mlmp) = (ulong_t)fmpp->mr_addr +
736 (void) fullpath(mlmp, 0);
747 FLAGS(mlmp) |= (FLG_RT_ISMAIN | FLG_RT_MODESET);
748 FLAGS1(mlmp) |= FL1_RT_USED;
756 INIT(mlmp) = FINI(mlmp) = NULL;
757 if ((INITARRAY(mlmp) == NULL) && (FINIARRAY(mlmp) == NULL))
758 FLAGS1(mlmp) |= FL1_RT_NOINIFIN;
764 FLAGS1(mlmp) |= FL1_RT_LDDSTUB;
809 if (rtld_stat(PATHNAME(mlmp), &status) == 0) {
810 STDEV(mlmp) = status.st_dev;
811 STINO(mlmp) = status.st_ino;
818 if ((features = elf_config(mlmp, (aoutdyn != 0))) == -1)
829 if (CAPSET(mlmp).sc_sf_1 & SF1_SUNW_ADDR32)
839 if (cap_check_lmp(mlmp, &rej) == 0) {
843 NAME(mlmp), rej.rej_str);
848 NAME(mlmp), rej.rej_str);
867 MODE(mlmp) |= (RTLD_NODELETE | RTLD_GLOBAL | RTLD_WORLD);
870 MODE(mlmp) |= RTLD_CONFGEN;
871 MODE(mlmp) &= ~RTLD_NOW;
875 if ((MODE(mlmp) & RTLD_NOW) == 0) {
877 MODE(mlmp) |= RTLD_NOW;
879 MODE(mlmp) |= RTLD_LAZY;
929 if (THIS_IS_ELF(mlmp)) {
930 DBG_CALL(Dbg_file_elf(&lml_main, PATHNAME(mlmp),
931 ADDR(mlmp), MSIZE(mlmp), LIST(mlmp)->lm_lmidstr,
934 DBG_CALL(Dbg_file_aout(&lml_main, PATHNAME(mlmp),
935 ADDR(mlmp), MSIZE(mlmp), LIST(mlmp)->lm_lmidstr,
964 (void) audit_setup(mlmp, auditors,
971 if (AUDITORS(mlmp)) {
976 if (FLAGS1(mlmp) & FL1_RT_GLOBAUD) {
987 auditors->ad_name = AUDITORS(mlmp)->ad_name;
988 if (audit_setup(mlmp, auditors, 0, NULL) == 0)
995 free((void *) AUDITORS(mlmp));
996 AUDITORS(mlmp) = NULL;
1002 if (audit_setup(mlmp, AUDITORS(mlmp), 0, NULL) == 0)
1005 AFLAGS(mlmp) |= AUDITORS(mlmp)->ad_flags;
1016 if ((lml_main.lm_tflags | AFLAGS(mlmp)) & LML_TFLG_AUD_MASK) {
1017 if (((audit_objopen(mlmp, mlmp) == 0) ||
1018 (audit_objopen(mlmp, rlmp) == 0)) &&
1019 (AFLAGS(mlmp) & LML_TFLG_AUD_MASK))
1033 clmp = mlmp;
1034 if (rpl_preload && (preload(rpl_preload, mlmp, &clmp) == 0))
1036 if (prm_preload && (preload(prm_preload, mlmp, &clmp) == 0))
1042 if (analyze_lmc(&lml_main, ALIST_OFF_DATA, mlmp, mlmp, NULL) == NULL)
1063 if (relocate_lmc(&lml_main, ALIST_OFF_DATA, mlmp,
1064 mlmp, NULL) == 0)
1112 ((lml_main.lm_tflags | AFLAGS(mlmp)) & LML_TFLG_AUD_ACTIVITY))
1113 audit_activity(mlmp, LA_ACT_CONSISTENT);
1115 ((lml_main.lm_tflags | AFLAGS(mlmp)) & LML_TFLG_AUD_PREINIT))
1116 audit_preinit(mlmp);
1123 leave(LIST(mlmp), 0);
1124 return (mlmp);
1135 if ((tobj = tsort(mlmp, LIST(mlmp)->lm_init,
1193 if (rt_get_extern(&lml_main, mlmp) == 0)
1197 if (tls_statmod(&lml_main, mlmp) == 0)
1210 call_array(PREINITARRAY(mlmp), (uint_t)PREINITARRAYSZ(mlmp), mlmp,
1220 DBG_CALL(Dbg_util_call_main(mlmp));
1224 leave(LIST(mlmp), 0);
1226 return (mlmp);