Lines Matching defs:ofl

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