Lines Matching refs:mf

71 map_cap(Mapfile *mf, Word type, Capmask *capmask)  in map_cap()  argument
76 Ofl_desc *ofl = mf->mf_ofl; in map_cap()
81 Dbg_cap_mapfile_title(ofl->ofl_lml, mf->mf_lineno); in map_cap()
86 while ((tok = ld_map_gettoken(mf, TK_F_STRLC, &tkv)) != in map_cap()
90 mf_fatal0(mf, MSG_INTL(MSG_MAP_EXPSEGATT)); in map_cap()
100 ld_map_cap_set_ovflag(mf, type); in map_cap()
119 mf_fatal(mf, MSG_INTL(MSG_MAP_BADCAPVAL), in map_cap()
132 mf_fatal(mf, MSG_INTL(MSG_MAP_UNKCAPATTR), tkv.tkv_str); in map_cap()
138 mf_warn0(mf, MSG_INTL(MSG_MAP_EMPTYCAP)); in map_cap()
147 if (!ld_map_cap_sanitize(mf, type, capmask)) in map_cap()
170 map_equal_flags(Mapfile *mf, Sg_desc *sgp, Boolean *b_flags, in map_equal_flags() argument
176 mf_fatal(mf, MSG_INTL(MSG_MAP_MOREONCE), in map_equal_flags()
208 mf_fatal(mf, MSG_INTL(MSG_MAP_ISORDVER), in map_equal_flags()
227 mf_fatal(mf, MSG_INTL(MSG_MAP_UNKSEGFLG), *flag_tok); in map_equal_flags()
242 mf_warn(mf, MSG_INTL(MSG_MAP_REDEFATT), in map_equal_flags()
267 valuetoxword(Mapfile *mf, ld_map_tkval_t *tkv, Xword *value) in valuetoxword() argument
274 mf_fatal(mf, MSG_INTL(MSG_MAP_SEGADDR), tkv->tkv_str, in valuetoxword()
278 mf_fatal(mf, MSG_INTL(MSG_MAP_SEGADDR), tkv->tkv_str, in valuetoxword()
293 map_equal(Mapfile *mf, Sg_desc *sgp) in map_equal() argument
329 while ((tok = ld_map_gettoken(mf, TK_F_STRLC, &tkv)) != in map_equal()
333 mf_fatal0(mf, MSG_INTL(MSG_MAP_EXPSEGATT)); in map_equal()
344 mf_fatal(mf, MSG_INTL(MSG_MAP_MOREONCE), in map_equal()
350 mf_warn(mf, MSG_INTL(MSG_MAP_REDEFATT), in map_equal()
365 if (!map_equal_flags(mf, sgp, &b_flags, tkv.tkv_str)) in map_equal()
377 if (!valuetoxword(mf, &tkv, &number)) in map_equal()
383 mf_fatal(mf, in map_equal()
390 mf_warn(mf, in map_equal()
400 mf_fatal(mf, in map_equal()
407 mf_warn(mf, in map_equal()
417 mf_fatal(mf, in map_equal()
424 mf_warn(mf, in map_equal()
435 mf_fatal(mf, in map_equal()
442 mf_warn(mf, in map_equal()
453 mf_fatal(mf, in map_equal()
460 mf_warn(mf, in map_equal()
478 mf_fatal(mf, MSG_INTL(MSG_MAP_UNKSEGATT), tkv.tkv_str); in map_equal()
503 mf_fatal(mf, MSG_INTL(MSG_MAP_SEGEMNOPERM), in map_equal()
509 if ((mf->mf_ofl->ofl_flags & FLG_OF_EXEC) == 0) { in map_equal()
510 mf_fatal0(mf, MSG_INTL(MSG_MAP_SEGEMPEXE)); in map_equal()
516 mf_fatal0(mf, MSG_INTL(MSG_MAP_SEGEMPATT)); in map_equal()
524 mf_fatal0(mf, MSG_INTL(MSG_MAP_SEGEMPNOATT)); in map_equal()
528 mf_warn0(mf, MSG_INTL(MSG_MAP_SEGEMPLOAD)); in map_equal()
553 mf_warn(mf, MSG_INTL(MSG_MAP_NONLOAD), in map_equal()
560 mf_warn(mf, fmt, MSG_INTL(MSG_MAP_SEGLEN)); in map_equal()
565 mf_warn(mf, fmt, MSG_INTL(MSG_MAP_SEGROUND)); in map_equal()
570 mf_warn(mf, fmt, MSG_INTL(MSG_MAP_SEGVADDR)); in map_equal()
576 mf_warn(mf, fmt, MSG_INTL(MSG_MAP_SEGPHYS)); in map_equal()
581 mf_warn(mf, fmt, MSG_INTL(MSG_MAP_SEGALIGN)); in map_equal()
597 map_colon(Mapfile *mf, Ent_desc *enp) in map_colon() argument
614 while (((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_COLON) && in map_colon()
619 mf_fatal0(mf, MSG_INTL(MSG_MAP_MALFORM)); in map_colon()
627 mf_fatal(mf, MSG_INTL(MSG_MAP_MOREONCE), in map_colon()
666 mf_fatal(mf, MSG_INTL(MSG_MAP_UNKSECTYP), in map_colon()
683 mf_fatal(mf, MSG_INTL(MSG_MAP_MOREONCE), in map_colon()
695 mf_fatal(mf, in map_colon()
704 mf_fatal(mf, in map_colon()
716 mf_fatal(mf, in map_colon()
728 mf_fatal(mf, in map_colon()
740 mf_fatal(mf, in map_colon()
753 mf_fatal(mf, MSG_INTL(MSG_MAP_MOREONCE), in map_colon()
766 while ((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_SEMICOLON) { in map_colon()
771 mf_fatal0(mf, in map_colon()
787 if (!ld_map_seg_ent_files(mf, enp, ecf_type, in map_colon()
801 map_atsign(Mapfile *mf, Sg_desc *sgp) in map_atsign() argument
806 if ((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_STRING) { in map_atsign()
808 mf_fatal0(mf, MSG_INTL(MSG_MAP_EXPSYM_1)); in map_atsign()
813 if (!ld_map_seg_size_symbol(mf, sgp, TK_PLUSEQ, tkv.tkv_str)) in map_atsign()
817 if (ld_map_gettoken(mf, 0, &tkv) != TK_SEMICOLON) { in map_atsign()
819 mf_fatal0(mf, MSG_INTL(MSG_MAP_EXPSCOL)); in map_atsign()
828 map_pipe(Mapfile *mf, Sg_desc *sgp) in map_pipe() argument
833 if ((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_STRING) { in map_pipe()
835 mf_fatal0(mf, MSG_INTL(MSG_MAP_EXPSEC)); in map_pipe()
839 if (!ld_map_seg_os_order_add(mf, sgp, tkv.tkv_str)) in map_pipe()
842 if ((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_SEMICOLON) { in map_pipe()
844 mf_fatal0(mf, MSG_INTL(MSG_MAP_EXPSCOL)); in map_pipe()
858 map_dash(Mapfile *mf, char *name) in map_dash() argument
869 if ((sdf = ld_map_dv(mf, name)) == NULL) in map_dash()
875 while ((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_SEMICOLON) { in map_dash()
878 mf_fatal0(mf, MSG_INTL(MSG_MAP_EXPSO)); in map_dash()
887 if ((tok = ld_map_gettoken(mf, 0, &tkv)) != in map_dash()
890 mf_fatal0(mf, in map_dash()
896 if (!ld_map_dv_entry(mf, sdf, TRUE, in map_dash()
901 mf_fatal(mf, MSG_INTL(MSG_MAP_UNEXTOK), '='); in map_dash()
914 mf_fatal(mf, MSG_INTL(MSG_MAP_UNEXTOK), '$'); in map_dash()
923 mf_fatal(mf, MSG_INTL(MSG_MAP_UNKSOTYP), in map_dash()
933 if (!ld_map_dv_entry(mf, sdf, FALSE, tkv.tkv_str)) in map_dash()
954 map_version(Mapfile *mf, char *name) in map_version() argument
960 Ofl_desc *ofl = mf->mf_ofl; in map_version()
963 if (!ld_map_sym_ver_init(mf, name, &mv)) in map_version()
969 while ((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_RIGHTBKT) { in map_version()
974 mf_fatal0(mf, MSG_INTL(MSG_MAP_EXPSYM_2)); in map_version()
985 tok = ld_map_gettoken(mf, 0, &tkv); in map_version()
1005 ld_map_sym_scope(mf, ms.ms_name, &mv); in map_version()
1015 while ((tok = ld_map_gettoken(mf, 0, &tkv)) != in map_version()
1020 mf_fatal0(mf, in map_version()
1031 ld_map_sym_filtee(mf, &mv, &ms, in map_version()
1046 if (!valuetoxword(mf, &tkv, &number)) { in map_version()
1055 mf_fatal(mf, in map_version()
1069 mf_fatal(mf, in map_version()
1129 mf_fatal0(mf, in map_version()
1150 mf_fatal(mf, in map_version()
1162 ld_map_sym_autoreduce(mf, &mv); in map_version()
1171 mf_fatal(mf, MSG_INTL(MSG_MAP_NOFILTER), in map_version()
1184 if (!ld_map_sym_enter(mf, &mv, &ms, NULL)) in map_version()
1189 mf_fatal0(mf, MSG_INTL(MSG_MAP_EXPSCOL)); in map_version()
1202 if (!ld_map_sym_ver_fini(mf, &mv)) in map_version()
1212 ld_map_parse_v1(Mapfile *mf) in ld_map_parse_v1() argument
1219 Ofl_desc *ofl = mf->mf_ofl; in ld_map_parse_v1()
1226 while ((tok = ld_map_gettoken(mf, TK_F_EOFOK, &tkv)) != TK_EOF) { in ld_map_parse_v1()
1236 if (!map_version(mf, NULL)) in ld_map_parse_v1()
1242 mf_fatal0(mf, MSG_INTL(MSG_MAP_EXPSEGNAM)); in ld_map_parse_v1()
1256 tok = ld_map_gettoken(mf, 0, &tkv); in ld_map_parse_v1()
1260 if (!map_dash(mf, name)) in ld_map_parse_v1()
1265 if (!map_version(mf, name)) in ld_map_parse_v1()
1274 sgp1 = ld_seg_lookup(mf->mf_ofl, name, &where); in ld_map_parse_v1()
1286 mf_fatal(mf, MSG_INTL(MSG_MAP_SECINSEG), in ld_map_parse_v1()
1290 if (!map_pipe(mf, sgp1)) in ld_map_parse_v1()
1320 if (!map_cap(mf, CA_SUNW_HW_1, in ld_map_parse_v1()
1327 if (!map_cap(mf, CA_SUNW_SF_1, in ld_map_parse_v1()
1338 ndx = ld_map_seg_index(mf, sgp1); in ld_map_parse_v1()
1340 ndx, sgp1, mf->mf_lineno); in ld_map_parse_v1()
1344 if (!map_equal(mf, sgp1)) in ld_map_parse_v1()
1367 Sg_desc *stack = ld_map_seg_stack(mf); in ld_map_parse_v1()
1375 mf->mf_lineno)); in ld_map_parse_v1()
1386 switch (ld_map_seg_insert(mf, DBG_STATE_NEW, in ld_map_parse_v1()
1397 mf->mf_lineno)); in ld_map_parse_v1()
1411 switch (ld_map_seg_insert(mf, in ld_map_parse_v1()
1419 mf_fatal0(mf, MSG_INTL(MSG_MAP_SEGEMPSEC)); in ld_map_parse_v1()
1427 enp = ld_map_seg_ent_add(mf, sgp1, NULL); in ld_map_parse_v1()
1428 if ((enp == NULL) || !map_colon(mf, enp)) in ld_map_parse_v1()
1431 mf->mf_lineno)); in ld_map_parse_v1()
1440 switch (ld_map_seg_insert(mf, in ld_map_parse_v1()
1448 if (!map_atsign(mf, sgp1)) in ld_map_parse_v1()
1456 mf_fatal0(mf, MSG_INTL(MSG_MAP_EXPEQU)); in ld_map_parse_v1()