Lines Matching refs:ofl
53 ifl_verify(Ehdr *ehdr, Ofl_desc *ofl, Rej_desc *rej) in ifl_verify() argument
71 if (ehdr->e_version > ofl->ofl_dehdr->e_version) { in ifl_verify()
84 ifl_setup(const char *name, Ehdr *ehdr, Elf *elf, Word flags, Ofl_desc *ofl, in ifl_setup() argument
90 if (ifl_verify(ehdr, ofl, &_rej) == 0) { in ifl_setup()
92 DBG_CALL(Dbg_file_rejected(ofl->ofl_lml, &_rej, in ifl_setup()
120 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETSCN), in ifl_setup()
125 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETSHDR), in ifl_setup()
148 if (aplist_append(&ofl->ofl_sos, ifl, AL_CNT_OFL_LIBS) == NULL) in ifl_setup()
151 if (aplist_append(&ofl->ofl_objs, ifl, AL_CNT_OFL_OBJS) == NULL) in ifl_setup()
164 Word ndx, int ident, Ofl_desc *ofl) in process_section() argument
183 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETDATA), in process_section()
189 ((ofl->ofl_flags & FLG_OF_RELOBJ) == 0)) { in process_section()
238 sf1_cap(Ofl_desc *ofl, Xword val, Ifl_desc *ifl, Is_desc *cisp) in sf1_cap() argument
248 if (ofl->ofl_flags1 & FLG_OF1_OVSFCAP1) { in sf1_cap()
249 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_IGNORED, in sf1_cap()
262 ld_eprintf(ofl, ERR_WARNING, in sf1_cap()
281 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_FIL_BADSF1), in sf1_cap()
287 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_FIL_BADSF1), in sf1_cap()
308 if ((val & SF1_SUNW_ADDR32) && (ofl->ofl_flags & FLG_OF_EXEC) && in sf1_cap()
309 ((ofl->ofl_ocapset.oc_sf_1.cm_val & in sf1_cap()
311 ld_eprintf(ofl, ERR_WARNING, in sf1_cap()
320 Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_CURRENT, CA_SUNW_SF_1, in sf1_cap()
321 ofl->ofl_ocapset.oc_sf_1.cm_val, ld_targ.t_m.m_mach); in sf1_cap()
322 Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_NEW, CA_SUNW_SF_1, in sf1_cap()
330 if ((ofl->ofl_ocapset.oc_sf_1.cm_val & FP_FLAGS) == FP_FLAGS) { in sf1_cap()
336 ofl->ofl_ocapset.oc_sf_1.cm_val &= ~SF1_SUNW_FPUSED; in sf1_cap()
344 } else if ((ofl->ofl_ocapset.oc_sf_1.cm_val & SF1_SUNW_FPKNWN) == 0) { in sf1_cap()
350 ofl->ofl_ocapset.oc_sf_1.cm_val &= ~FP_FLAGS; in sf1_cap()
356 ofl->ofl_ocapset.oc_sf_1.cm_val |= val; in sf1_cap()
358 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_RESOLVED, in sf1_cap()
359 CA_SUNW_SF_1, ofl->ofl_ocapset.oc_sf_1.cm_val, ld_targ.t_m.m_mach)); in sf1_cap()
371 hw_cap(Ofl_desc *ofl, Xword tag, Xword val) in hw_cap() argument
377 hwcap = &ofl->ofl_ocapset.oc_hw_1.cm_val; in hw_cap()
380 hwcap = &ofl->ofl_ocapset.oc_hw_2.cm_val; in hw_cap()
388 if (ofl->ofl_flags1 & flags1) { in hw_cap()
389 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_IGNORED, in hw_cap()
402 Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_CURRENT, CA_SUNW_HW_1, in hw_cap()
403 ofl->ofl_ocapset.oc_hw_1.cm_val, ld_targ.t_m.m_mach); in hw_cap()
404 Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_NEW, CA_SUNW_HW_1, in hw_cap()
410 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_RESOLVED, tag, in hw_cap()
419 str_cap(Ofl_desc *ofl, char *pstr, ofl_flag_t flags, Xword tag, Caplist *list) in str_cap() argument
429 if (ofl->ofl_flags1 & flags) { in str_cap()
430 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_IGNORED, in str_cap()
436 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, in str_cap()
442 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_NEW, tag, pstr)); in str_cap()
447 ofl->ofl_flags |= FLG_OF_FATAL; in str_cap()
455 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, in str_cap()
470 id_cap(Ofl_desc *ofl, char *pstr, oc_flag_t flags) in id_cap() argument
472 Objcapset *ocapset = &ofl->ofl_ocapset; in id_cap()
475 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_CURRENT, in id_cap()
480 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, in id_cap()
486 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_NEW, in id_cap()
492 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_RESOLVED, in id_cap()
505 ld_cap_move_symtoobj(Ofl_desc *ofl) in ld_cap_move_symtoobj() argument
510 for (APLIST_TRAVERSE(ofl->ofl_capgroups, idx1, cgp)) { in ld_cap_move_symtoobj()
517 id_cap(ofl, scapset->oc_id.cs_str, in ld_cap_move_symtoobj()
523 str_cap(ofl, capstr->cs_str, FLG_OF1_OVPLATCAP, in ld_cap_move_symtoobj()
524 CA_SUNW_PLAT, &ofl->ofl_ocapset.oc_plat); in ld_cap_move_symtoobj()
530 str_cap(ofl, capstr->cs_str, FLG_OF1_OVMACHCAP, in ld_cap_move_symtoobj()
531 CA_SUNW_MACH, &ofl->ofl_ocapset.oc_mach); in ld_cap_move_symtoobj()
535 hw_cap(ofl, CA_SUNW_HW_2, scapset->oc_hw_2.cm_val); in ld_cap_move_symtoobj()
538 hw_cap(ofl, CA_SUNW_HW_1, scapset->oc_hw_1.cm_val); in ld_cap_move_symtoobj()
541 sf1_cap(ofl, scapset->oc_sf_1.cm_val, NULL, NULL); in ld_cap_move_symtoobj()
554 get_cap_group(Objcapset *ocapset, Word cnum, Ofl_desc *ofl, Is_desc *isp) in get_cap_group() argument
570 for (APLIST_TRAVERSE(ofl->ofl_capgroups, idx, cgp)) { in get_cap_group()
618 (aplist_append(&(ofl->ofl_capgroups), cgp, in get_cap_group()
643 aplist_nitems(ofl->ofl_capgroups)); in get_cap_group()
668 ofl->ofl_capsymcnt += (cnum + 1); in get_cap_group()
695 ld_cap_add_family(Ofl_desc *ofl, Sym_desc *lsdp, Sym_desc *csdp, Cap_group *cgp, in ld_cap_add_family() argument
707 if ((avlt = ofl->ofl_capfamilies) == NULL) { in ld_cap_add_family()
712 ofl->ofl_capfamilies = avlt; in ld_cap_add_family()
719 ofl->ofl_capchaincnt = 1; in ld_cap_add_family()
743 ofl->ofl_capchaincnt += 2; in ld_cap_add_family()
775 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_CAP_MULDEF), in ld_cap_add_family()
777 ld_eprintf(ofl, ERR_NONE, MSG_INTL(MSG_CAP_MULDEFSYMS), in ld_cap_add_family()
796 ofl->ofl_capchaincnt++; in ld_cap_add_family()
815 process_cap(Ofl_desc *ofl, Ifl_desc *ifl, Is_desc *cisp) in process_cap() argument
834 DBG_CALL(Dbg_cap_sec_title(ofl->ofl_lml, ifl->ifl_name)); in process_cap()
893 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_FIL_UNKCAP), in process_cap()
907 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_FIL_INVSHINFO), in process_cap()
930 ((symcapndx != -1) || ((ofl->ofl_flags & FLG_OF_OTOSCAP) == 0))) { in process_cap()
946 sf1_cap(ofl, data->c_un.c_val, ifl, cisp); in process_cap()
961 hw_cap(ofl, data->c_tag, data->c_un.c_val); in process_cap()
965 str_cap(ofl, strs + data->c_un.c_ptr, in process_cap()
967 &ofl->ofl_ocapset.oc_plat); in process_cap()
971 str_cap(ofl, strs + data->c_un.c_ptr, in process_cap()
973 &ofl->ofl_ocapset.oc_mach); in process_cap()
977 id_cap(ofl, strs + data->c_un.c_ptr, in process_cap()
992 ((ofl->ofl_flags & FLG_OF_OTOSCAP) == 0)) in process_cap()
1010 (symcapndx == -1) && (ofl->ofl_flags & FLG_OF_OTOSCAP)) in process_cap()
1068 (ndx - descapndx), ofl, in process_cap()
1101 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, in process_cap()
1108 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, in process_cap()
1115 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, in process_cap()
1125 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, in process_cap()
1134 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, in process_cap()
1140 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, in process_cap()
1163 process_capinfo(Ofl_desc *ofl, Ifl_desc *ifl, Is_desc *isp) in process_capinfo() argument
1192 ld_eprintf(ofl, ERR_WARNING, in process_capinfo()
1201 ld_eprintf(ofl, ERR_WARNING, in process_capinfo()
1221 if (ld_cap_add_family(ofl, lsdp, sdp, in process_capinfo()
1234 ofl->ofl_caploclcnt++; in process_capinfo()
1235 if (((ofl->ofl_flags & FLG_OF_RELOBJ) == 0) && in process_capinfo()
1236 (st_insert(ofl->ofl_dynstrtab, sdp->sd_name) == -1)) in process_capinfo()
1243 ofl->ofl_locscnt--; in process_capinfo()
1264 if (ld_cap_add_family(ofl, lsdp, sdp, in process_capinfo()
1281 Word ndx, int ident, Ofl_desc *ofl) in process_input() argument
1284 ld_targ.t_id.id_null, ofl)); in process_input()
1296 Word ndx, int ident, Ofl_desc *ofl) in process_reloc() argument
1299 shdr, scn, ndx, ld_targ.t_id.id_null, ofl) == S_ERROR) in process_reloc()
1305 ofl->ofl_relocincnt += in process_reloc()
1307 } else if (ofl->ofl_flags & FLG_OF_EXEC) { in process_reloc()
1321 Word ndx, int ident, Ofl_desc *ofl) in process_strtab() argument
1332 if (((ofl->ofl_flags & FLG_OF_STRIP) && ident && in process_strtab()
1346 error = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_strtab()
1360 ld_eprintf(ofl, ERR_WARNING, in process_strtab()
1376 Word ndx, int ident, Ofl_desc *ofl) in invalid_section() argument
1380 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_FIL_INVALSEC), in invalid_section()
1435 Word ndx, int *ident, Ofl_desc *ofl, Boolean is_stab_index, in process_progbits_alloc() argument
1529 Word ndx, int ident, Ofl_desc *ofl) in process_progbits() argument
1541 if ((ofl->ofl_flags & FLG_OF_STRIP) || in process_progbits()
1551 if ((ofl->ofl_flags & FLG_OF_STRIP) && ident) { in process_progbits()
1578 &ident, ofl, is_stab_index, &is_flags) == FALSE) in process_progbits()
1585 r = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_progbits()
1602 Word ndx, int ident, Ofl_desc *ofl) in process_debug() argument
1607 if (ofl->ofl_flags & FLG_OF_STRIP) { in process_debug()
1610 return (process_progbits(name, ifl, shdr, scn, ndx, ident, ofl)); in process_debug()
1618 Word ndx, int ident, Ofl_desc *ofl) in process_nobits() argument
1631 return (process_section(name, ifl, shdr, scn, ndx, ident, ofl)); in process_nobits()
1639 Word ndx, int ident, Ofl_desc *ofl) in process_array() argument
1646 error = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_array()
1655 array_process(Is_desc *isc, Ifl_desc *ifl, Ofl_desc *ofl) in array_process() argument
1666 (ofl->ofl_osfiniarray == NULL)) in array_process()
1667 ofl->ofl_osfiniarray = osp; in array_process()
1669 (ofl->ofl_osinitarray == NULL)) in array_process()
1670 ofl->ofl_osinitarray = osp; in array_process()
1672 (ofl->ofl_ospreinitarray == NULL)) in array_process()
1673 ofl->ofl_ospreinitarray = osp; in array_process()
1683 Word ndx, int ident, Ofl_desc *ofl) in process_sym_shndx() argument
1685 if (process_input(name, ifl, shdr, scn, ndx, ident, ofl) == S_ERROR) in process_sym_shndx()
1696 ld_eprintf(ofl, ERR_FATAL, in process_sym_shndx()
1711 sym_shndx_process(Is_desc *isc, Ifl_desc *ifl, Ofl_desc *ofl) in sym_shndx_process() argument
1718 ld_eprintf(ofl, ERR_FATAL, in sym_shndx_process()
1739 Word ndx, int ident, Ofl_desc *ofl) in process_rel_dynamic() argument
1749 if ((ofl->ofl_flags1 & FLG_OF1_RELDYN) == 0) in process_rel_dynamic()
1756 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETSCN), in process_rel_dynamic()
1776 (aplist_append(&ofl->ofl_sos, difl, in process_rel_dynamic()
1786 if ((ofl->ofl_rpath = add_string(ofl->ofl_rpath, in process_rel_dynamic()
2082 Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) in process_dynamic_isgnu() argument
2088 error = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_dynamic_isgnu()
2117 process_dynamic(Is_desc *isc, Ifl_desc *ifl, Ofl_desc *ofl) in process_dynamic() argument
2128 no_undef = (ofl->ofl_flags & (FLG_OF_NOUNDEF | FLG_OF_SYMBOLIC)) || in process_dynamic()
2129 OFL_GUIDANCE(ofl, FLG_OFG_NO_DEFS); in process_dynamic()
2175 if ((sdf = sdf_find(needed, ofl->ofl_soneed)) == NULL) { in process_dynamic()
2177 &ofl->ofl_soneed)) == (Sdf_desc *)S_ERROR) in process_dynamic()
2213 (ofl->ofl_flags & FLG_OF_EXEC)) in process_dynamic()
2221 if ((ofl->ofl_depaudit = add_string(ofl->ofl_depaudit, in process_dynamic()
2262 for (APLIST_TRAVERSE(ofl->ofl_sos, idx, sifl)) { in process_dynamic()
2291 ld_eprintf(ofl, ERR_FATAL, in process_dynamic()
2303 if (ofl->ofl_soname && in process_dynamic()
2304 (strcmp(ofl->ofl_soname, ifl->ifl_soname) == 0)) { in process_dynamic()
2305 ld_eprintf(ofl, ERR_FATAL, in process_dynamic()
2320 process_progbits_final(Is_desc *isc, Ifl_desc *ifl, Ofl_desc *ofl) in process_progbits_final() argument
2323 (ld_unwind_register(isc->is_osdesc, ofl) == S_ERROR)) in process_progbits_final()
2334 Word ndx, int ident, Ofl_desc *ofl) in process_group() argument
2338 error = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_group()
2357 rel_process(Is_desc *isc, Ifl_desc *ifl, Ofl_desc *ofl) in rel_process() argument
2369 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_FIL_INVALSEC), in rel_process()
2388 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_FIL_INVSHINFO), in rel_process()
2394 if (aplist_append(&ofl->ofl_extrarels, isc, in rel_process()
2412 if (aplist_append(&ofl->ofl_ismoverel, in rel_process()
2417 ld_eprintf(ofl, ERR_FATAL, in rel_process()
2435 Word ndx, Ofl_desc *ofl) in process_exclude() argument
2453 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_FIL_EXCLUDE), in process_exclude()
2461 return (process_section(name, ifl, shdr, scn, ndx, 0, ofl)); in process_exclude()
2531 process_elf(Ifl_desc *ifl, Elf *elf, Ofl_desc *ofl) in process_elf() argument
2550 path_info = ld_place_path_info_init(ofl, ifl, &path_info_buf); in process_elf()
2556 ld_sup_file(ofl, ifl->ifl_name, elf_kind(elf), ifl->ifl_flags, elf); in process_elf()
2560 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETSCN), in process_elf()
2565 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETSHDR), in process_elf()
2571 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_STRPTR), in process_elf()
2576 if (ld_sup_input_section(ofl, ifl, name, &shdr, sndx, scn, in process_elf()
2586 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_STRPTR), in process_elf()
2591 error = process_strtab(name, ifl, shdr, scn, sndx, FALSE, ofl); in process_elf()
2602 ofl->ofl_soscnt++; in process_elf()
2606 ofl->ofl_objscnt++; in process_elf()
2610 DBG_CALL(Dbg_file_generic(ofl->ofl_lml, ifl)); in process_elf()
2624 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETSHDR), in process_elf()
2630 if (ld_sup_input_section(ofl, ifl, name, &shdr, ndx, scn, in process_elf()
2647 ((ofl->ofl_flags & FLG_OF_RELOBJ) == 0)) { in process_elf()
2649 ndx, ofl)) == S_ERROR) in process_elf()
2662 ndx, ident, ofl) == S_ERROR) in process_elf()
2674 ld_eprintf(ofl, ERR_WARNING, in process_elf()
2688 ndx, ident, ofl) == S_ERROR) in process_elf()
2693 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2699 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2706 ndx, ident, ofl) == S_ERROR) in process_elf()
2711 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2716 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2722 ndx, ident, ofl) == S_ERROR) in process_elf()
2727 ndx, ident, ofl) == S_ERROR) in process_elf()
2733 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2739 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2745 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2760 ld_targ.t_id.id_gotdata, ofl) == S_ERROR) in process_elf()
2784 ofl) == S_ERROR) in process_elf()
2795 ident : ld_targ.t_id.id_user), ofl) == in process_elf()
2818 if (ld_group_process(isp, ofl) == S_ERROR) in process_elf()
2829 ld_comdat_validate(ofl, ifl); in process_elf()
2847 if (ld_place_section(ofl, isp, path_info, in process_elf()
2878 if (ld_process_ordered(ofl, ifl, path_info, ndx) == in process_elf()
2909 if ((sdf = sdf_find(base, ofl->ofl_socntl)) != NULL) { in process_elf()
2922 if (capisp && (process_cap(ofl, ifl, capisp) == S_ERROR)) in process_elf()
2930 if (vndisp && ((ofl->ofl_flags & (FLG_OF_NOUNDEF | FLG_OF_SYMBOLIC)) || in process_elf()
2931 OFL_GUIDANCE(ofl, FLG_OFG_NO_DEFS))) in process_elf()
2932 if (ld_vers_need_process(vndisp, ifl, ofl) == S_ERROR) in process_elf()
2940 (void) ld_vers_sym_process(ofl, vsyisp, ifl); in process_elf()
2944 if (ld_vers_def_process(vdfisp, ifl, ofl) == S_ERROR) in process_elf()
2959 ld_sup_section(ofl, isp->is_name, isp->is_shdr, ndx, in process_elf()
2967 if (aplist_append(&(ofl->ofl_ismove), isp, in process_elf()
2979 ofl) == S_ERROR) in process_elf()
2995 (ld_unwind_register(osp, ofl) == S_ERROR)) in process_elf()
3008 (process_capinfo(ofl, ifl, capinfoisp) == S_ERROR)) in process_elf()
3018 (void) ld_sym_nodirect(sifisp, ifl, ofl); in process_elf()
3065 Word flags, Ofl_desc *ofl, Rej_desc *rej, Ifl_desc **ifl_ret) in ld_process_ifl() argument
3098 DBG_CALL(Dbg_file_rejected(ofl->ofl_lml, &_rej, in ld_process_ifl()
3113 for (APLIST_TRAVERSE(ofl->ofl_ars, idx, adp)) { in ld_process_ifl()
3125 DBG_CALL(Dbg_file_reuse(ofl->ofl_lml, name, in ld_process_ifl()
3128 if (!ld_process_archive(name, -1, adp, ofl)) in ld_process_ifl()
3138 adp = ld_ar_setup(name, elf, ofl); in ld_process_ifl()
3144 ld_sup_file(ofl, name, ELF_K_AR, flags, elf); in ld_process_ifl()
3159 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_CNTL), in ld_process_ifl()
3164 if (!ld_process_archive(name, -1, adp, ofl)) in ld_process_ifl()
3191 DBG_CALL(Dbg_file_rejected(ofl->ofl_lml, &_rej, in ld_process_ifl()
3208 apl = ofl->ofl_objs; in ld_process_ifl()
3210 apl = ofl->ofl_sos; in ld_process_ifl()
3231 DBG_CALL(Dbg_file_skip(ofl->ofl_lml, in ld_process_ifl()
3257 ld_eprintf(ofl, ERR_WARNING, in ld_process_ifl()
3270 ifl = ifl_setup(name, ehdr, elf, flags, ofl, rej); in ld_process_ifl()
3281 if (ofl->ofl_flags1 & FLG_OF1_IGNORE) in ld_process_ifl()
3286 (*ld_targ.t_mr.mr_mach_eflags)(ehdr, ofl); in ld_process_ifl()
3287 error = process_elf(ifl, elf, ofl); in ld_process_ifl()
3290 if ((ofl->ofl_flags & FLG_OF_STATIC) || in ld_process_ifl()
3291 !(ofl->ofl_flags & FLG_OF_DYNLIBS)) { in ld_process_ifl()
3292 ld_eprintf(ofl, ERR_FATAL, in ld_process_ifl()
3315 if (ofl->ofl_flags1 & FLG_OF1_ZDIRECT) in ld_process_ifl()
3317 if (ofl->ofl_flags1 & FLG_OF1_LAZYLD) in ld_process_ifl()
3319 if (ofl->ofl_flags1 & FLG_OF1_GRPPRM) in ld_process_ifl()
3321 if (ofl->ofl_flags1 & FLG_OF1_DEFERRED) in ld_process_ifl()
3325 error = process_elf(ifl, elf, ofl); in ld_process_ifl()
3331 ofl->ofl_flags |= FLG_OF_SYMINFO; in ld_process_ifl()
3338 if (OFL_GUIDANCE(ofl, FLG_OFG_NO_LAZY) && in ld_process_ifl()
3340 ld_eprintf(ofl, ERR_GUIDANCE, in ld_process_ifl()
3342 ofl->ofl_guideflags |= FLG_OFG_NO_LAZY; in ld_process_ifl()
3349 if (OFL_GUIDANCE(ofl, FLG_OFG_NO_DB)) { in ld_process_ifl()
3350 ld_eprintf(ofl, ERR_GUIDANCE, in ld_process_ifl()
3352 ofl->ofl_guideflags |= FLG_OFG_NO_DB; in ld_process_ifl()
3360 DBG_CALL(Dbg_file_rejected(ofl->ofl_lml, &_rej, in ld_process_ifl()
3373 DBG_CALL(Dbg_file_rejected(ofl->ofl_lml, &_rej, in ld_process_ifl()
3396 ld_process_open(const char *opath, const char *ofile, int *fd, Ofl_desc *ofl, in ld_process_open() argument
3404 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_BEGIN), npath); in ld_process_open()
3421 ld_sup_open(ofl, &npath, &nfile, fd, flags, &elf, NULL, 0, in ld_process_open()
3427 return (ld_process_ifl(npath, nfile, *fd, elf, flags, ofl, rej, in ld_process_open()
3438 Ofl_desc *ofl, Rej_desc *rej) in ld_process_mem() argument
3445 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_MEMORY), path); in ld_process_mem()
3449 open_ret = ld_process_ifl(path, file, 0, elf, 0, ofl, rej, &ifl); in ld_process_mem()
3462 Ofl_desc *ofl, Rej_desc *rej) in process_req_lib() argument
3480 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_FIL_PTHTOLONG), in process_req_lib()
3491 DBG_CALL(Dbg_libs_req(ofl->ofl_lml, sdf->sdf_name, in process_req_lib()
3504 open_ret = ld_process_open(_path, &_path[dlen], &fd, ofl, in process_req_lib()
3527 ld_finish_libs(Ofl_desc *ofl) in ld_finish_libs() argument
3536 ofl->ofl_flags |= FLG_OF_DYNLIBS; in ld_finish_libs()
3538 for (APLIST_TRAVERSE(ofl->ofl_soneed, idx1, sdf)) { in ld_finish_libs()
3555 for (APLIST_TRAVERSE(ofl->ofl_sos, idx2, ifl)) { in ld_finish_libs()
3575 DBG_CALL(Dbg_libs_req(ofl->ofl_lml, sdf->sdf_name, in ld_finish_libs()
3578 ld_eprintf(ofl, ERR_WARNING, in ld_finish_libs()
3586 &fd, ofl, 0, &_rej, &ifl); in ld_finish_libs()
3595 ld_eprintf(ofl, ERR_WARNING, in ld_finish_libs()
3610 for (APLIST_TRAVERSE(ofl->ofl_ulibdirs, idx2, path)) { in ld_finish_libs()
3613 ifl = process_req_lib(sdf, path, file, ofl, &_rej); in ld_finish_libs()
3642 DBG_CALL(Dbg_libs_path(ofl->ofl_lml, rpath, in ld_finish_libs()
3653 file, ofl, &_rej); in ld_finish_libs()
3677 for (APLIST_TRAVERSE(ofl->ofl_dlibdirs, idx2, path)) { in ld_finish_libs()
3680 ifl = process_req_lib(sdf, path, file, ofl, &rej); in ld_finish_libs()
3707 ld_eprintf(ofl, ERR_WARNING, in ld_finish_libs()
3714 ld_eprintf(ofl, ERR_WARNING, in ld_finish_libs()
3723 return (ld_vers_verify(ofl)); in ld_finish_libs()