Lines Matching refs:ofl

246 ld_rescan_archives(Ofl_desc *ofl, int isgrp, int end_arg_ndx)  in ld_rescan_archives()  argument
248 ofl->ofl_flags1 |= FLG_OF1_EXTRACT; in ld_rescan_archives()
250 while (ofl->ofl_flags1 & FLG_OF1_EXTRACT) { in ld_rescan_archives()
253 Word start_ndx = isgrp ? ofl->ofl_ars_gsndx : 0; in ld_rescan_archives()
256 ofl->ofl_flags1 &= ~FLG_OF1_EXTRACT; in ld_rescan_archives()
258 DBG_CALL(Dbg_file_ar_rescan(ofl->ofl_lml, in ld_rescan_archives()
259 isgrp ? ofl->ofl_ars_gsandx : 1, end_arg_ndx)); in ld_rescan_archives()
261 for (APLIST_TRAVERSE(ofl->ofl_ars, idx, adp)) { in ld_rescan_archives()
276 ofl->ofl_flags1 &= ~MSK_OF1_ARCHIVE; in ld_rescan_archives()
277 ofl->ofl_flags1 |= (adp->ad_flags & MSK_OF1_ARCHIVE); in ld_rescan_archives()
284 if (!ld_process_archive(adp->ad_name, -1, adp, ofl)) in ld_rescan_archives()
286 if (ofl->ofl_flags & FLG_OF_FATAL) in ld_rescan_archives()
298 check_flags(Ofl_desc * ofl, int argc) in check_flags() argument
307 if ((ofl->ofl_guideflags & (FLG_OFG_ENABLE | FLG_OFG_NO_ALL)) == in check_flags()
309 ofl->ofl_guideflags &= ~FLG_OFG_ENABLE; in check_flags()
312 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_YP), in check_flags()
322 if (ofl->ofl_flags & FLG_OF_COMREL) in check_flags()
323 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_MARG_INCOMP), in check_flags()
326 ofl->ofl_flags |= FLG_OF_RELOBJ; in check_flags()
332 if (ofl->ofl_flags & FLG_OF_OTOSCAP) in check_flags()
333 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_MARG_ONLY), in check_flags()
341 if ((ofl->ofl_flags & FLG_OF_NOCOMREL) == 0) in check_flags()
342 ofl->ofl_flags |= FLG_OF_COMREL; in check_flags()
346 ofl->ofl_flags |= FLG_OF_NOUNDEF; in check_flags()
349 ofl->ofl_dtflags_1 |= DF_1_INTERPOSE; in check_flags()
352 ofl->ofl_flags |= FLG_OF_STRIP; in check_flags()
355 ofl->ofl_flags |= FLG_OF_ADDVERS; in check_flags()
358 ofl->ofl_flags |= FLG_OF_AUTOLCL; in check_flags()
361 ofl->ofl_flags |= FLG_OF_AUTOELM; in check_flags()
364 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_INCOMP), in check_flags()
367 if (ofl->ofl_interp && (ofl->ofl_flags1 & FLG_OF1_NOINTRP)) in check_flags()
368 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_INCOMP), in check_flags()
371 if ((ofl->ofl_flags1 & (FLG_OF1_NRLXREL | FLG_OF1_RLXREL)) == in check_flags()
373 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_INCOMP), in check_flags()
377 if (ofl->ofl_filtees && !Gflag) in check_flags()
378 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_MARG_ST_ONLYAVL), in check_flags()
379 ((ofl->ofl_flags & FLG_OF_AUX) ? in check_flags()
387 ofl->ofl_flags |= in check_flags()
391 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_INCOMP), in check_flags()
395 ofl->ofl_flags |= FLG_OF_BFLAG; in check_flags()
399 ld_eprintf(ofl, ERR_FATAL, in check_flags()
403 ofl->ofl_dtflags_1 |= DF_1_GROUP; in check_flags()
404 ofl->ofl_flags |= FLG_OF_NOUNDEF; in check_flags()
412 if ((ofl->ofl_dtflags_1 & DF_1_NODEFLIB) && !ofl->ofl_rpath) in check_flags()
413 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_ARG_NODEFLIB), in check_flags()
424 ofl->ofl_flags1 |= FLG_OF1_TEXTOFF; in check_flags()
425 ofl->ofl_guideflags |= FLG_OFG_NO_TEXT; in check_flags()
427 ofl->ofl_flags |= FLG_OF_PURETXT; in check_flags()
428 ofl->ofl_guideflags |= FLG_OFG_NO_TEXT; in check_flags()
452 ofl->ofl_dtflags_1 |= DF_1_DIRECT; in check_flags()
453 ofl->ofl_flags1 |= FLG_OF1_LAZYLD; in check_flags()
454 ofl->ofl_guideflags |= FLG_OFG_NO_LAZY; in check_flags()
455 ofl->ofl_flags |= FLG_OF_SYMINFO; in check_flags()
465 ofl->ofl_flags1 |= (FLG_OF1_NDIRECT | in check_flags()
467 ofl->ofl_flags |= FLG_OF_SYMINFO; in check_flags()
475 ofl->ofl_flags |= FLG_OF_EXEC; in check_flags()
478 ofl->ofl_flags |= FLG_OF_NOUNDEF; in check_flags()
485 ofl->ofl_guideflags |= FLG_OFG_NO_TEXT; in check_flags()
488 ld_eprintf(ofl, ERR_FATAL, in check_flags()
491 if (ofl->ofl_soname) in check_flags()
492 ld_eprintf(ofl, ERR_FATAL, in check_flags()
499 ofl->ofl_flags |= FLG_OF_SHAROBJ; in check_flags()
512 if (!OFL_GUIDANCE(ofl, FLG_OFG_NO_TEXT)) in check_flags()
513 ofl->ofl_flags1 |= FLG_OF1_TEXTOFF; in check_flags()
514 } else if ((ofl->ofl_flags & FLG_OF_PURETXT) || in check_flags()
515 (ofl->ofl_flags1 & FLG_OF1_TEXTOFF)) { in check_flags()
516 ofl->ofl_guideflags |= FLG_OFG_NO_TEXT; in check_flags()
524 ld_eprintf(ofl, ERR_FATAL, in check_flags()
528 ofl->ofl_flags |= FLG_OF_SYMBOLIC; in check_flags()
529 ofl->ofl_dtflags |= DF_SYMBOLIC; in check_flags()
536 ofl->ofl_flags1 |= FLG_OF1_TEXTOFF; in check_flags()
537 ofl->ofl_guideflags |= FLG_OFG_NO_TEXT; in check_flags()
539 if (ofl->ofl_interp) in check_flags()
540 ld_eprintf(ofl, ERR_FATAL, in check_flags()
546 ofl->ofl_flags |= FLG_OF_STATIC; in check_flags()
549 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_ST_INCOMP), in check_flags()
551 if (ofl->ofl_soname) in check_flags()
552 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_MARG_ST_INCOMP), in check_flags()
554 if (ofl->ofl_depaudit) in check_flags()
555 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_ST_INCOMP), in check_flags()
557 if (ofl->ofl_audit) in check_flags()
558 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_ST_INCOMP), in check_flags()
560 if (ofl->ofl_config) in check_flags()
561 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_ST_INCOMP), in check_flags()
564 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_ST_INCOMP), in check_flags()
567 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_MARG_ST_INCOMP), in check_flags()
570 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_MARG_INCOMP), in check_flags()
579 ld_eprintf(ofl, ERR_WARNING, in check_flags()
585 ofl->ofl_flags1 |= FLG_OF1_TEXTOFF; in check_flags()
586 ofl->ofl_guideflags |= FLG_OFG_NO_TEXT; in check_flags()
588 if (ofl->ofl_interp) in check_flags()
589 ld_eprintf(ofl, ERR_FATAL, in check_flags()
597 ofl->ofl_flags |= FLG_OF_EXEC | FLG_OF_PROCRED; in check_flags()
600 ofl->ofl_flags |= FLG_OF_NOUNDEF; in check_flags()
607 if (ofl->ofl_name == NULL) in check_flags()
608 ofl->ofl_name = MSG_ORIG(MSG_STR_AOUT); in check_flags()
615 if (ld_ent_setup(ofl, ld_targ.t_m.m_segm_align) == S_ERROR) in check_flags()
625 ofl->ofl_flags1 |= FLG_OF1_ENCDIFF; in check_flags()
638 if (ld_init_strings(ofl) == S_ERROR) in check_flags()
646 if (ofl->ofl_maps) { in check_flags()
650 for (APLIST_TRAVERSE(ofl->ofl_maps, idx, name)) in check_flags()
651 if (!ld_map_parse(name, ofl)) in check_flags()
654 if (!ld_map_post_process(ofl)) in check_flags()
665 if (((ofl->ofl_flags & in check_flags()
667 (ofl->ofl_flags & (FLG_OF_AUTOLCL | FLG_OF_AUTOELM))) { in check_flags()
668 ofl->ofl_flags |= FLG_OF_SYMBOLIC; in check_flags()
669 ofl->ofl_dtflags |= DF_SYMBOLIC; in check_flags()
678 if ((ofl->ofl_filtees == NULL) && (ofl->ofl_dtsfltrs == NULL)) in check_flags()
679 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_NOFLTR), in check_flags()
681 ofl->ofl_dtflags_1 |= DF_1_LOADFLTR; in check_flags()
690 if ((ofl->ofl_objscnt == 0) && (ofl->ofl_soscnt == 0)) { in check_flags()
694 ofl->ofl_flags1 |= FLG_OF1_DONE; in check_flags()
696 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_NOFILES)); in check_flags()
711 createargv(Ofl_desc *ofl, int *usage) in createargv() argument
802 ret = process_flags_com(ofl, argc, argv, usage); in createargv()
804 ret = process_files_com(ofl, argc, argv); in createargv()
842 guidance_parse(Ofl_desc *ofl, char *optarg) in guidance_parse() argument
885 ofl->ofl_lml, name)); in guidance_parse()
901 ld_eprintf(ofl, ERR_WARNING_NF, MSG_INTL(MSG_ARG_MTONCE), in guidance_parse()
912 ofl->ofl_guideflags |= ofl_guideflags; in guidance_parse()
932 assdeflib_parse(Ofl_desc *ofl, char *optarg) in assdeflib_parse() argument
935 ofl->ofl_flags |= FLG_OF_ADEFLIB; in assdeflib_parse()
943 ld_eprintf(ofl, ERR_FATAL, "Missing =\n"); in assdeflib_parse()
944 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_ILLEGAL), in assdeflib_parse()
953 ld_eprintf(ofl, ERR_FATAL, in assdeflib_parse()
958 if (aplist_append(&ofl->ofl_assdeflib, optarg + in assdeflib_parse()
971 parseopt_pass1(Ofl_desc *ofl, int argc, char **argv, int *usage) in parseopt_pass1() argument
985 while ((c = ld_getopt(ofl->ofl_lml, ndx, argc, argv)) != -1) { in parseopt_pass1()
989 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
997 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1003 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1011 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1017 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, NULL)); in parseopt_pass1()
1022 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, NULL)); in parseopt_pass1()
1035 ofl->ofl_flags |= FLG_OF_NOLDYNSYM; in parseopt_pass1()
1039 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1040 if (ofl->ofl_config) in parseopt_pass1()
1041 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1045 ofl->ofl_config = optarg; in parseopt_pass1()
1049 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, NULL)); in parseopt_pass1()
1054 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1057 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1064 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1070 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1077 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1078 if (ofl->ofl_entry) in parseopt_pass1()
1079 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1083 ofl->ofl_entry = (void *)optarg; in parseopt_pass1()
1087 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1088 if (ofl->ofl_filtees && in parseopt_pass1()
1089 (!(ofl->ofl_flags & FLG_OF_AUX))) { in parseopt_pass1()
1090 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1095 if ((ofl->ofl_filtees = in parseopt_pass1()
1096 add_string(ofl->ofl_filtees, optarg)) == in parseopt_pass1()
1099 ofl->ofl_flags |= FLG_OF_AUX; in parseopt_pass1()
1104 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1105 if (ofl->ofl_filtees && in parseopt_pass1()
1106 (ofl->ofl_flags & FLG_OF_AUX)) { in parseopt_pass1()
1107 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1112 if ((ofl->ofl_filtees = in parseopt_pass1()
1113 add_string(ofl->ofl_filtees, optarg)) == in parseopt_pass1()
1120 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1121 if (ofl->ofl_soname) in parseopt_pass1()
1122 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1126 ofl->ofl_soname = (const char *)optarg; in parseopt_pass1()
1130 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, NULL)); in parseopt_pass1()
1131 ofl->ofl_flags |= FLG_OF_IGNENV; in parseopt_pass1()
1135 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1136 if (ofl->ofl_interp) in parseopt_pass1()
1137 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1141 ofl->ofl_interp = (const char *)optarg; in parseopt_pass1()
1145 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1152 ofl->ofl_soscnt++; in parseopt_pass1()
1156 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, NULL)); in parseopt_pass1()
1157 ofl->ofl_flags |= FLG_OF_GENMAP; in parseopt_pass1()
1161 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1162 if (ofl->ofl_name) in parseopt_pass1()
1163 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1167 ofl->ofl_name = (const char *)optarg; in parseopt_pass1()
1171 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1179 if ((ofl->ofl_audit = in parseopt_pass1()
1180 add_string(ofl->ofl_audit, in parseopt_pass1()
1187 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1195 if ((ofl->ofl_depaudit = in parseopt_pass1()
1196 add_string(ofl->ofl_depaudit, in parseopt_pass1()
1203 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, NULL)); in parseopt_pass1()
1208 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1216 if ((ofl->ofl_rpath = in parseopt_pass1()
1217 add_string(ofl->ofl_rpath, in parseopt_pass1()
1224 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, NULL)); in parseopt_pass1()
1229 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, NULL)); in parseopt_pass1()
1230 ofl->ofl_flags |= FLG_OF_NOWARN; in parseopt_pass1()
1234 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1238 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1258 if (createargv(ofl, usage) == S_ERROR) in parseopt_pass1()
1264 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1269 ofl->ofl_guideflags |= FLG_OFG_NO_DEFS; in parseopt_pass1()
1273 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1278 ofl->ofl_guideflags |= FLG_OFG_NO_DEFS; in parseopt_pass1()
1283 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1292 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1301 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1312 ofl->ofl_flags1 |= FLG_OF1_RESCAN; in parseopt_pass1()
1315 ofl->ofl_flags1 |= FLG_OF1_ABSEXEC; in parseopt_pass1()
1321 ofl->ofl_dtflags_1 |= DF_1_NORELOC; in parseopt_pass1()
1324 ofl->ofl_flags |= FLG_OF_NOVERSEC; in parseopt_pass1()
1327 ofl->ofl_flags |= FLG_OF_MULDEFS; in parseopt_pass1()
1330 ofl->ofl_flags |= FLG_OF_REDLSYM; in parseopt_pass1()
1333 ofl->ofl_dtflags_1 |= DF_1_INITFIRST; in parseopt_pass1()
1336 ofl->ofl_dtflags_1 |= DF_1_NODELETE; in parseopt_pass1()
1339 ofl->ofl_flags1 |= FLG_OF1_NOPARTI; in parseopt_pass1()
1342 ofl->ofl_dtflags_1 |= DF_1_NOOPEN; in parseopt_pass1()
1345 ofl->ofl_dtflags_1 |= DF_1_NOW; in parseopt_pass1()
1346 ofl->ofl_dtflags |= DF_BIND_NOW; in parseopt_pass1()
1349 ofl->ofl_dtflags_1 |= DF_1_ORIGIN; in parseopt_pass1()
1350 ofl->ofl_dtflags |= DF_ORIGIN; in parseopt_pass1()
1353 ofl->ofl_dtflags_1 |= DF_1_NODEFLIB; in parseopt_pass1()
1356 ofl->ofl_dtflags_1 |= DF_1_NODUMP; in parseopt_pass1()
1359 ofl->ofl_dtflags_1 |= DF_1_ENDFILTEE; in parseopt_pass1()
1362 ofl->ofl_flags |= FLG_OF_VERBOSE; in parseopt_pass1()
1365 ofl->ofl_flags |= FLG_OF_COMREL; in parseopt_pass1()
1368 ofl->ofl_flags |= FLG_OF_NOCOMREL; in parseopt_pass1()
1371 ofl->ofl_flags1 |= FLG_OF1_NCSTTAB; in parseopt_pass1()
1374 ofl->ofl_flags1 |= FLG_OF1_NOINTRP; in parseopt_pass1()
1380 ofl->ofl_flags1 |= FLG_OF1_IGNPRC; in parseopt_pass1()
1383 ofl->ofl_flags1 |= FLG_OF1_RLXREL; in parseopt_pass1()
1386 ofl->ofl_flags1 |= FLG_OF1_NRLXREL; in parseopt_pass1()
1389 ofl->ofl_flags |= FLG_OF_NOLDYNSYM; in parseopt_pass1()
1392 ofl->ofl_dtflags_1 |= DF_1_GLOBAUDIT; in parseopt_pass1()
1395 ofl->ofl_flags1 |= FLG_OF1_NOSGHND; in parseopt_pass1()
1398 ofl->ofl_flags |= FLG_OF_OTOSCAP; in parseopt_pass1()
1407 if (ofl->ofl_ars_gsandx == 0) { in parseopt_pass1()
1408 ofl->ofl_ars_gsandx = ndx; in parseopt_pass1()
1409 } else if (ofl->ofl_ars_gsandx > 0) { in parseopt_pass1()
1411 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1415 ofl->ofl_ars_gsandx = -1; in parseopt_pass1()
1419 if (ofl->ofl_ars_gsandx > 0) { in parseopt_pass1()
1420 ofl->ofl_ars_gsandx = 0; in parseopt_pass1()
1421 } else if (ofl->ofl_ars_gsandx == 0) { in parseopt_pass1()
1423 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1428 ofl->ofl_ars_gsandx = -1; in parseopt_pass1()
1437 if (ld_wrap_enter(ofl, in parseopt_pass1()
1444 if (!guidance_parse(ofl, optarg)) in parseopt_pass1()
1449 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1454 ofl->ofl_flags |= FLG_OF_FATWARN; in parseopt_pass1()
1459 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1472 if (assdeflib_parse(ofl, optarg) != TRUE) in parseopt_pass1()
1506 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1524 if (ofl->ofl_objscnt == 0) { in parseopt_pass1()
1525 if (dbg_setup(ofl, optarg, 2) == 0) in parseopt_pass1()
1536 DBG_CALL(Dbg_basic_options(ofl->ofl_lml)); in parseopt_pass1()
1538 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1542 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1545 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1551 ofl->ofl_guideflags |= FLG_OFG_NO_DB; in parseopt_pass1()
1556 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1562 ofl->ofl_guideflags |= FLG_OFG_NO_DB; in parseopt_pass1()
1568 ofl->ofl_flags |= FLG_OF_PROCRED; in parseopt_pass1()
1578 ld_eprintf(ofl, ERR_WARNING, in parseopt_pass1()
1584 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1591 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, NULL)); in parseopt_pass1()
1596 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1600 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1601 if (aplist_append(&(ofl->ofl_maps), optarg, in parseopt_pass1()
1607 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1611 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1614 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1621 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1627 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1634 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1641 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, NULL)); in parseopt_pass1()
1644 ofl->ofl_sgsid); in parseopt_pass1()
1649 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg)); in parseopt_pass1()
1652 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1660 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1668 ld_eprintf(ofl, ERR_WARNING_NF, in parseopt_pass1()
1674 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass1()
1681 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, NULL)); in parseopt_pass1()
1688 eprintf(ofl->ofl_lml, ERR_FATAL, in parseopt_pass1()
1692 eprintf(ofl->ofl_lml, ERR_FATAL, in parseopt_pass1()
1714 parseopt_pass2(Ofl_desc *ofl, int argc, char **argv) in parseopt_pass2() argument
1718 while ((c = ld_getopt(ofl->ofl_lml, ndx, argc, argv)) != -1) { in parseopt_pass2()
1724 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, in parseopt_pass2()
1726 if (ld_find_library(optarg, ofl) == S_ERROR) in parseopt_pass2()
1730 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, in parseopt_pass2()
1734 if (ofl->ofl_flags & FLG_OF_DYNAMIC) in parseopt_pass2()
1735 ofl->ofl_flags |= in parseopt_pass2()
1738 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass2()
1744 ofl->ofl_flags &= ~FLG_OF_DYNLIBS; in parseopt_pass2()
1747 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, in parseopt_pass2()
1749 if (ld_add_libdir(ofl, optarg) == S_ERROR) in parseopt_pass2()
1753 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, in parseopt_pass2()
1758 if (!(ofl->ofl_flags & FLG_OF_DYNAMIC)) in parseopt_pass2()
1759 ld_eprintf(ofl, ERR_FATAL, in parseopt_pass2()
1764 (aplist_append(&ofl->ofl_sos, ifl, in parseopt_pass2()
1775 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, in parseopt_pass2()
1777 (void) dbg_setup(ofl, optarg, 3); in parseopt_pass2()
1780 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, in parseopt_pass2()
1782 if (ld_sym_add_u(optarg, ofl, in parseopt_pass2()
1787 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, in parseopt_pass2()
1793 if (createargv(ofl, 0) == S_ERROR) in parseopt_pass2()
1797 ofl->ofl_flags1 |= FLG_OF1_ALLEXRT; in parseopt_pass2()
1798 ofl->ofl_flags1 &= ~FLG_OF1_WEAKEXT; in parseopt_pass2()
1801 ofl->ofl_flags1 |= FLG_OF1_WEAKEXT; in parseopt_pass2()
1802 ofl->ofl_flags1 &= ~FLG_OF1_ALLEXRT; in parseopt_pass2()
1805 ofl->ofl_flags1 &= in parseopt_pass2()
1810 ofl->ofl_flags1 |= FLG_OF1_ZDIRECT; in parseopt_pass2()
1811 ofl->ofl_guideflags |= FLG_OFG_NO_DB; in parseopt_pass2()
1814 ofl->ofl_flags1 &= ~FLG_OF1_ZDIRECT; in parseopt_pass2()
1815 ofl->ofl_guideflags |= FLG_OFG_NO_DB; in parseopt_pass2()
1818 ofl->ofl_flags1 |= FLG_OF1_IGNORE; in parseopt_pass2()
1821 ofl->ofl_flags1 &= ~FLG_OF1_IGNORE; in parseopt_pass2()
1824 ofl->ofl_flags1 |= FLG_OF1_LAZYLD; in parseopt_pass2()
1825 ofl->ofl_guideflags |= FLG_OFG_NO_LAZY; in parseopt_pass2()
1828 ofl->ofl_flags1 &= ~ FLG_OF1_LAZYLD; in parseopt_pass2()
1829 ofl->ofl_guideflags |= FLG_OFG_NO_LAZY; in parseopt_pass2()
1832 ofl->ofl_flags1 |= FLG_OF1_GRPPRM; in parseopt_pass2()
1835 ofl->ofl_flags1 &= ~FLG_OF1_GRPPRM; in parseopt_pass2()
1840 MSG_ARG_INITARRAY_SIZE, ofl, in parseopt_pass2()
1843 (aplist_append(&ofl->ofl_initarray, in parseopt_pass2()
1850 MSG_ARG_FINIARRAY_SIZE, ofl, in parseopt_pass2()
1853 (aplist_append(&ofl->ofl_finiarray, in parseopt_pass2()
1860 MSG_ARG_PREINITARRAY_SIZE, ofl, in parseopt_pass2()
1863 (aplist_append(&ofl->ofl_preiarray, in parseopt_pass2()
1870 MSG_ARG_RTLDINFO_SIZE, ofl, in parseopt_pass2()
1873 (aplist_append(&ofl->ofl_rtldinfo, in parseopt_pass2()
1880 MSG_ARG_DTRACE_SIZE, ofl, in parseopt_pass2()
1884 ofl->ofl_dtracesym = sdp; in parseopt_pass2()
1887 if (ld_rescan_archives(ofl, 0, ndx) == in parseopt_pass2()
1892 ofl->ofl_ars_gsndx = ofl->ofl_arscnt; in parseopt_pass2()
1893 ofl->ofl_ars_gsandx = ndx; in parseopt_pass2()
1896 if (ld_rescan_archives(ofl, 1, ndx) == in parseopt_pass2()
1901 ofl->ofl_flags1 |= FLG_OF1_DEFERRED; in parseopt_pass2()
1904 ofl->ofl_flags1 &= ~FLG_OF1_DEFERRED; in parseopt_pass2()
1923 process_flags_com(Ofl_desc *ofl, int argc, char **argv, int *usage) in process_flags_com() argument
1933 if (parseopt_pass1(ofl, argc, argv, in process_flags_com()
1941 ofl->ofl_objscnt++; in process_flags_com()
1945 if (ofl->ofl_ars_gsandx > 0) { in process_flags_com()
1946 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_ARG_AR_GRP_BAD), in process_flags_com()
1956 ld_process_flags(Ofl_desc *ofl, int argc, char **argv) in ld_process_flags() argument
1970 if (process_flags_com(ofl, argc, argv, &usage) == S_ERROR) in ld_process_flags()
1977 eprintf(ofl->ofl_lml, ERR_FATAL, MSG_INTL(MSG_ARG_USEHELP)); in ld_process_flags()
1981 return (check_flags(ofl, argc)); in ld_process_flags()
1989 process_files_com(Ofl_desc *ofl, int argc, char **argv) in process_files_com() argument
2004 if (parseopt_pass2(ofl, argc, argv) == S_ERROR) in process_files_com()
2016 ld_eprintf(ofl, ERR_FATAL, in process_files_com()
2021 DBG_CALL(Dbg_args_file(ofl->ofl_lml, optind, path)); in process_files_com()
2023 open_ret = ld_process_open(path, path, &fd, ofl, in process_files_com()
2036 ld_eprintf(ofl, ERR_FATAL, in process_files_com()
2049 ld_process_files(Ofl_desc *ofl, int argc, char **argv) in ld_process_files() argument
2051 DBG_CALL(Dbg_basic_files(ofl->ofl_lml)); in ld_process_files()
2059 if (process_files_com(ofl, argc, argv) == S_ERROR) in ld_process_files()
2061 if (ofl->ofl_flags & FLG_OF_FATAL) in ld_process_files()
2072 if ((ofl->ofl_flags & FLG_OF_DYNAMIC) && in ld_process_files()
2073 OFL_GUIDANCE(ofl, FLG_OFG_NO_DB)) { in ld_process_files()
2074 ld_eprintf(ofl, ERR_GUIDANCE, MSG_INTL(MSG_GUIDE_DIRECT)); in ld_process_files()
2075 ofl->ofl_guideflags |= FLG_OFG_NO_DB; in ld_process_files()
2082 if (ofl->ofl_soneed) in ld_process_files()
2083 if (ld_finish_libs(ofl) == S_ERROR) in ld_process_files()
2094 if (ofl->ofl_flags1 & FLG_OF1_RESCAN) { in ld_process_files()
2095 if (ld_rescan_archives(ofl, 0, argc) == S_ERROR) in ld_process_files()
2097 if (ofl->ofl_flags & FLG_OF_FATAL) in ld_process_files()
2108 DBG_CALL(Dbg_statistics_ar(ofl)); in ld_process_files()
2115 if (ofl->ofl_verdesc) in ld_process_files()
2116 if (ld_vers_check_defs(ofl) == S_ERROR) in ld_process_files()
2123 if (ofl->ofl_flags & FLG_OF_IS_ORDER) in ld_process_files()
2124 ld_ent_check(ofl); in ld_process_files()
2130 ld_init_strings(Ofl_desc *ofl) in ld_init_strings() argument
2134 if (ofl->ofl_flags1 & FLG_OF1_NCSTTAB) in ld_init_strings()
2139 if (((ofl->ofl_shdrsttab = st_new(stflags)) == NULL) || in ld_init_strings()
2140 ((ofl->ofl_strtab = st_new(stflags)) == NULL) || in ld_init_strings()
2141 ((ofl->ofl_dynstrtab = st_new(stflags)) == NULL)) in ld_init_strings()