Lines Matching refs:ofl

54 ifl_verify(Ehdr *ehdr, Ofl_desc *ofl, Rej_desc *rej)  in ifl_verify()  argument
72 if (ehdr->e_version > ofl->ofl_dehdr->e_version) { in ifl_verify()
85 ifl_setup(const char *name, Ehdr *ehdr, Elf *elf, Word flags, Ofl_desc *ofl, in ifl_setup() argument
91 if (ifl_verify(ehdr, ofl, &_rej) == 0) { in ifl_setup()
93 DBG_CALL(Dbg_file_rejected(ofl->ofl_lml, &_rej, in ifl_setup()
121 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETSCN), in ifl_setup()
126 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETSHDR), in ifl_setup()
149 if (aplist_append(&ofl->ofl_sos, ifl, AL_CNT_OFL_LIBS) == NULL) in ifl_setup()
152 if (aplist_append(&ofl->ofl_objs, ifl, AL_CNT_OFL_OBJS) == NULL) in ifl_setup()
166 section_is_exclude(Ofl_desc *ofl, Shdr *shdr) in section_is_exclude() argument
169 if ((ofl->ofl_flags & FLG_OF_RELOBJ) == 0) in section_is_exclude()
171 if (ofl->ofl_flags & FLG_OF_KMOD) in section_is_exclude()
183 Word ndx, int ident, Ofl_desc *ofl) in process_section() argument
202 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETDATA), in process_section()
207 if (section_is_exclude(ofl, shdr)) in process_section()
255 sf1_cap(Ofl_desc *ofl, Xword val, Ifl_desc *ifl, Is_desc *cisp) in sf1_cap() argument
265 if (ofl->ofl_flags1 & FLG_OF1_OVSFCAP1) { in sf1_cap()
266 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_IGNORED, in sf1_cap()
279 ld_eprintf(ofl, ERR_WARNING, in sf1_cap()
298 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_FIL_BADSF1), in sf1_cap()
304 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_FIL_BADSF1), in sf1_cap()
325 if ((val & SF1_SUNW_ADDR32) && (ofl->ofl_flags & FLG_OF_EXEC) && in sf1_cap()
326 ((ofl->ofl_ocapset.oc_sf_1.cm_val & in sf1_cap()
328 ld_eprintf(ofl, ERR_WARNING, in sf1_cap()
337 Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_CURRENT, CA_SUNW_SF_1, in sf1_cap()
338 ofl->ofl_ocapset.oc_sf_1.cm_val, ld_targ.t_m.m_mach); in sf1_cap()
339 Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_NEW, CA_SUNW_SF_1, in sf1_cap()
347 if ((ofl->ofl_ocapset.oc_sf_1.cm_val & FP_FLAGS) == FP_FLAGS) { in sf1_cap()
353 ofl->ofl_ocapset.oc_sf_1.cm_val &= ~SF1_SUNW_FPUSED; in sf1_cap()
361 } else if ((ofl->ofl_ocapset.oc_sf_1.cm_val & SF1_SUNW_FPKNWN) == 0) { in sf1_cap()
367 ofl->ofl_ocapset.oc_sf_1.cm_val &= ~FP_FLAGS; in sf1_cap()
373 ofl->ofl_ocapset.oc_sf_1.cm_val |= val; in sf1_cap()
375 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_RESOLVED, in sf1_cap()
376 CA_SUNW_SF_1, ofl->ofl_ocapset.oc_sf_1.cm_val, ld_targ.t_m.m_mach)); in sf1_cap()
388 hw_cap(Ofl_desc *ofl, Xword tag, Xword val) in hw_cap() argument
395 hwcap = &ofl->ofl_ocapset.oc_hw_1.cm_val; in hw_cap()
399 hwcap = &ofl->ofl_ocapset.oc_hw_2.cm_val; in hw_cap()
403 hwcap = &ofl->ofl_ocapset.oc_hw_3.cm_val; in hw_cap()
414 if (ofl->ofl_flags1 & flags1) { in hw_cap()
415 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_IGNORED, in hw_cap()
428 Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_CURRENT, CA_SUNW_HW_1, in hw_cap()
429 ofl->ofl_ocapset.oc_hw_1.cm_val, ld_targ.t_m.m_mach); in hw_cap()
430 Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_NEW, CA_SUNW_HW_1, in hw_cap()
436 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, DBG_STATE_RESOLVED, tag, in hw_cap()
445 str_cap(Ofl_desc *ofl, char *pstr, ofl_flag_t flags, Xword tag, Caplist *list) in str_cap() argument
455 if (ofl->ofl_flags1 & flags) { in str_cap()
456 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_IGNORED, in str_cap()
462 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, in str_cap()
468 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_NEW, tag, pstr)); in str_cap()
473 ofl->ofl_flags |= FLG_OF_FATAL; in str_cap()
481 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, in str_cap()
496 id_cap(Ofl_desc *ofl, char *pstr, oc_flag_t flags) in id_cap() argument
498 Objcapset *ocapset = &ofl->ofl_ocapset; in id_cap()
501 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_CURRENT, in id_cap()
506 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, in id_cap()
512 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_NEW, in id_cap()
518 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_RESOLVED, in id_cap()
531 ld_cap_move_symtoobj(Ofl_desc *ofl) in ld_cap_move_symtoobj() argument
536 for (APLIST_TRAVERSE(ofl->ofl_capgroups, idx1, cgp)) { in ld_cap_move_symtoobj()
543 id_cap(ofl, scapset->oc_id.cs_str, in ld_cap_move_symtoobj()
549 str_cap(ofl, capstr->cs_str, FLG_OF1_OVPLATCAP, in ld_cap_move_symtoobj()
550 CA_SUNW_PLAT, &ofl->ofl_ocapset.oc_plat); in ld_cap_move_symtoobj()
556 str_cap(ofl, capstr->cs_str, FLG_OF1_OVMACHCAP, in ld_cap_move_symtoobj()
557 CA_SUNW_MACH, &ofl->ofl_ocapset.oc_mach); in ld_cap_move_symtoobj()
561 hw_cap(ofl, CA_SUNW_HW_3, scapset->oc_hw_3.cm_val); in ld_cap_move_symtoobj()
564 hw_cap(ofl, CA_SUNW_HW_2, scapset->oc_hw_2.cm_val); in ld_cap_move_symtoobj()
567 hw_cap(ofl, CA_SUNW_HW_1, scapset->oc_hw_1.cm_val); in ld_cap_move_symtoobj()
570 sf1_cap(ofl, scapset->oc_sf_1.cm_val, NULL, NULL); in ld_cap_move_symtoobj()
583 get_cap_group(Objcapset *ocapset, Word cnum, Ofl_desc *ofl, Is_desc *isp) in get_cap_group() argument
599 for (APLIST_TRAVERSE(ofl->ofl_capgroups, idx, cgp)) { in get_cap_group()
649 (aplist_append(&(ofl->ofl_capgroups), cgp, in get_cap_group()
674 aplist_nitems(ofl->ofl_capgroups)); in get_cap_group()
699 ofl->ofl_capsymcnt += (cnum + 1); in get_cap_group()
726 ld_cap_add_family(Ofl_desc *ofl, Sym_desc *lsdp, Sym_desc *csdp, Cap_group *cgp, in ld_cap_add_family() argument
738 if ((avlt = ofl->ofl_capfamilies) == NULL) { in ld_cap_add_family()
743 ofl->ofl_capfamilies = avlt; in ld_cap_add_family()
750 ofl->ofl_capchaincnt = 1; in ld_cap_add_family()
774 ofl->ofl_capchaincnt += 2; in ld_cap_add_family()
806 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_CAP_MULDEF), in ld_cap_add_family()
808 ld_eprintf(ofl, ERR_NONE, MSG_INTL(MSG_CAP_MULDEFSYMS), in ld_cap_add_family()
827 ofl->ofl_capchaincnt++; in ld_cap_add_family()
846 process_cap(Ofl_desc *ofl, Ifl_desc *ifl, Is_desc *cisp) in process_cap() argument
865 DBG_CALL(Dbg_cap_sec_title(ofl->ofl_lml, ifl->ifl_name)); in process_cap()
925 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_FIL_UNKCAP), in process_cap()
939 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_FIL_INVSHINFO), in process_cap()
962 ((symcapndx != -1) || ((ofl->ofl_flags & FLG_OF_OTOSCAP) == 0))) { in process_cap()
978 sf1_cap(ofl, data->c_un.c_val, ifl, cisp); in process_cap()
993 hw_cap(ofl, data->c_tag, data->c_un.c_val); in process_cap()
997 str_cap(ofl, strs + data->c_un.c_ptr, in process_cap()
999 &ofl->ofl_ocapset.oc_plat); in process_cap()
1003 str_cap(ofl, strs + data->c_un.c_ptr, in process_cap()
1005 &ofl->ofl_ocapset.oc_mach); in process_cap()
1009 id_cap(ofl, strs + data->c_un.c_ptr, in process_cap()
1024 ((ofl->ofl_flags & FLG_OF_OTOSCAP) == 0)) in process_cap()
1042 (symcapndx == -1) && (ofl->ofl_flags & FLG_OF_OTOSCAP)) in process_cap()
1100 (ndx - descapndx), ofl, in process_cap()
1134 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, in process_cap()
1141 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, in process_cap()
1148 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, in process_cap()
1158 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, in process_cap()
1167 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, in process_cap()
1173 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, in process_cap()
1180 DBG_CALL(Dbg_cap_val_entry(ofl->ofl_lml, in process_cap()
1203 process_capinfo(Ofl_desc *ofl, Ifl_desc *ifl, Is_desc *isp) in process_capinfo() argument
1232 ld_eprintf(ofl, ERR_WARNING, in process_capinfo()
1241 ld_eprintf(ofl, ERR_WARNING, in process_capinfo()
1261 if (ld_cap_add_family(ofl, lsdp, sdp, in process_capinfo()
1274 ofl->ofl_caploclcnt++; in process_capinfo()
1275 if (((ofl->ofl_flags & FLG_OF_RELOBJ) == 0) && in process_capinfo()
1276 (st_insert(ofl->ofl_dynstrtab, sdp->sd_name) == -1)) in process_capinfo()
1283 ofl->ofl_locscnt--; in process_capinfo()
1304 if (ld_cap_add_family(ofl, lsdp, sdp, in process_capinfo()
1321 Word ndx, int ident, Ofl_desc *ofl) in process_input() argument
1324 ld_targ.t_id.id_null, ofl)); in process_input()
1336 Word ndx, int ident, Ofl_desc *ofl) in process_reloc() argument
1339 shdr, scn, ndx, ld_targ.t_id.id_null, ofl) == S_ERROR) in process_reloc()
1345 ofl->ofl_relocincnt += in process_reloc()
1347 } else if (ofl->ofl_flags & FLG_OF_EXEC) { in process_reloc()
1361 Word ndx, int ident, Ofl_desc *ofl) in process_strtab() argument
1372 if (((ofl->ofl_flags & FLG_OF_STRIP) && ident && in process_strtab()
1386 error = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_strtab()
1400 ld_eprintf(ofl, ERR_WARNING, in process_strtab()
1416 Word ndx, int ident, Ofl_desc *ofl) in invalid_section() argument
1420 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_FIL_INVALSEC), in invalid_section()
1476 Word ndx, int *ident, Ofl_desc *ofl, Boolean is_stab_index, in process_progbits_alloc() argument
1570 Word ndx, int ident, Ofl_desc *ofl) in process_progbits() argument
1582 if ((ofl->ofl_flags & FLG_OF_STRIP) || in process_progbits()
1592 if ((ofl->ofl_flags & FLG_OF_STRIP) && ident) { in process_progbits()
1619 &ident, ofl, is_stab_index, &is_flags) == FALSE) in process_progbits()
1626 r = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_progbits()
1643 Word ndx, int ident, Ofl_desc *ofl) in process_debug() argument
1648 if (ofl->ofl_flags & FLG_OF_STRIP) { in process_debug()
1651 return (process_progbits(name, ifl, shdr, scn, ndx, ident, ofl)); in process_debug()
1659 Word ndx, int ident, Ofl_desc *ofl) in process_nobits() argument
1672 return (process_section(name, ifl, shdr, scn, ndx, ident, ofl)); in process_nobits()
1680 Word ndx, int ident, Ofl_desc *ofl) in process_array() argument
1687 error = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_array()
1696 array_process(Is_desc *isc, Ifl_desc *ifl, Ofl_desc *ofl) in array_process() argument
1707 (ofl->ofl_osfiniarray == NULL)) in array_process()
1708 ofl->ofl_osfiniarray = osp; in array_process()
1710 (ofl->ofl_osinitarray == NULL)) in array_process()
1711 ofl->ofl_osinitarray = osp; in array_process()
1713 (ofl->ofl_ospreinitarray == NULL)) in array_process()
1714 ofl->ofl_ospreinitarray = osp; in array_process()
1724 Word ndx, int ident, Ofl_desc *ofl) in process_sym_shndx() argument
1726 if (process_input(name, ifl, shdr, scn, ndx, ident, ofl) == S_ERROR) in process_sym_shndx()
1737 ld_eprintf(ofl, ERR_FATAL, in process_sym_shndx()
1752 sym_shndx_process(Is_desc *isc, Ifl_desc *ifl, Ofl_desc *ofl) in sym_shndx_process() argument
1759 ld_eprintf(ofl, ERR_FATAL, in sym_shndx_process()
1780 Word ndx, int ident, Ofl_desc *ofl) in process_rel_dynamic() argument
1790 if ((ofl->ofl_flags1 & FLG_OF1_RELDYN) == 0) in process_rel_dynamic()
1797 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETSCN), in process_rel_dynamic()
1817 (aplist_append(&ofl->ofl_sos, difl, in process_rel_dynamic()
1827 if ((ofl->ofl_rpath = add_string(ofl->ofl_rpath, in process_rel_dynamic()
2123 Elf_Scn *scn, Word ndx, int ident, Ofl_desc *ofl) in process_dynamic_isgnu() argument
2129 error = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_dynamic_isgnu()
2158 process_dynamic(Is_desc *isc, Ifl_desc *ifl, Ofl_desc *ofl) in process_dynamic() argument
2169 no_undef = (ofl->ofl_flags & (FLG_OF_NOUNDEF | FLG_OF_SYMBOLIC)) || in process_dynamic()
2170 OFL_GUIDANCE(ofl, FLG_OFG_NO_DEFS); in process_dynamic()
2216 if ((sdf = sdf_find(needed, ofl->ofl_soneed)) == NULL) { in process_dynamic()
2218 &ofl->ofl_soneed)) == (Sdf_desc *)S_ERROR) in process_dynamic()
2254 (ofl->ofl_flags & FLG_OF_EXEC)) in process_dynamic()
2262 if ((ofl->ofl_depaudit = add_string(ofl->ofl_depaudit, in process_dynamic()
2303 for (APLIST_TRAVERSE(ofl->ofl_sos, idx, sifl)) { in process_dynamic()
2332 ld_eprintf(ofl, ERR_FATAL, in process_dynamic()
2344 if (ofl->ofl_soname && in process_dynamic()
2345 (strcmp(ofl->ofl_soname, ifl->ifl_soname) == 0)) { in process_dynamic()
2346 ld_eprintf(ofl, ERR_FATAL, in process_dynamic()
2361 process_progbits_final(Is_desc *isc, Ifl_desc *ifl, Ofl_desc *ofl) in process_progbits_final() argument
2364 (ld_unwind_register(isc->is_osdesc, ofl) == S_ERROR)) in process_progbits_final()
2375 Word ndx, int ident, Ofl_desc *ofl) in process_group() argument
2379 error = process_section(name, ifl, shdr, scn, ndx, ident, ofl); in process_group()
2398 rel_process(Is_desc *isc, Ifl_desc *ifl, Ofl_desc *ofl) in rel_process() argument
2410 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_FIL_INVALSEC), in rel_process()
2430 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_FIL_INVSHINFO), in rel_process()
2436 if (aplist_append(&ofl->ofl_extrarels, isc, in rel_process()
2454 if (aplist_append(&ofl->ofl_ismoverel, in rel_process()
2459 ld_eprintf(ofl, ERR_FATAL, in rel_process()
2477 Word ndx, Ofl_desc *ofl) in process_exclude() argument
2495 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_FIL_EXCLUDE), in process_exclude()
2503 return (process_section(name, ifl, shdr, scn, ndx, 0, ofl)); in process_exclude()
2573 process_elf(Ifl_desc *ifl, Elf *elf, Ofl_desc *ofl) in process_elf() argument
2592 path_info = ld_place_path_info_init(ofl, ifl, &path_info_buf); in process_elf()
2598 ld_sup_file(ofl, ifl->ifl_name, elf_kind(elf), ifl->ifl_flags, elf); in process_elf()
2602 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETSCN), in process_elf()
2607 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETSHDR), in process_elf()
2613 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_STRPTR), in process_elf()
2618 if (ld_sup_input_section(ofl, ifl, name, &shdr, sndx, scn, in process_elf()
2628 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_STRPTR), in process_elf()
2633 error = process_strtab(name, ifl, shdr, scn, sndx, FALSE, ofl); in process_elf()
2644 ofl->ofl_soscnt++; in process_elf()
2648 ofl->ofl_objscnt++; in process_elf()
2652 DBG_CALL(Dbg_file_generic(ofl->ofl_lml, ifl)); in process_elf()
2666 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_GETSHDR), in process_elf()
2672 if (ld_sup_input_section(ofl, ifl, name, &shdr, ndx, scn, in process_elf()
2684 if (section_is_exclude(ofl, shdr)) { in process_elf()
2686 ndx, ofl)) == S_ERROR) in process_elf()
2699 ndx, ident, ofl) == S_ERROR) in process_elf()
2716 ld_eprintf(ofl, ERR_WARNING, in process_elf()
2730 ndx, ident, ofl) == S_ERROR) in process_elf()
2735 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2741 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2748 ndx, ident, ofl) == S_ERROR) in process_elf()
2753 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2758 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2764 ndx, ident, ofl) == S_ERROR) in process_elf()
2769 ndx, ident, ofl) == S_ERROR) in process_elf()
2775 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2781 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2787 ld_targ.t_id.id_null, ofl) == S_ERROR) in process_elf()
2802 ld_targ.t_id.id_gotdata, ofl) == S_ERROR) in process_elf()
2826 ofl) == S_ERROR) in process_elf()
2837 ident : ld_targ.t_id.id_user), ofl) == in process_elf()
2860 if (ld_group_process(isp, ofl) == S_ERROR) in process_elf()
2871 ld_comdat_validate(ofl, ifl); in process_elf()
2889 if (ld_place_section(ofl, isp, path_info, in process_elf()
2920 if (ld_process_ordered(ofl, ifl, path_info, ndx) == in process_elf()
2951 if ((sdf = sdf_find(base, ofl->ofl_socntl)) != NULL) { in process_elf()
2964 if (capisp && (process_cap(ofl, ifl, capisp) == S_ERROR)) in process_elf()
2972 if (vndisp && ((ofl->ofl_flags & (FLG_OF_NOUNDEF | FLG_OF_SYMBOLIC)) || in process_elf()
2973 OFL_GUIDANCE(ofl, FLG_OFG_NO_DEFS))) in process_elf()
2974 if (ld_vers_need_process(vndisp, ifl, ofl) == S_ERROR) in process_elf()
2982 (void) ld_vers_sym_process(ofl, vsyisp, ifl); in process_elf()
2986 if (ld_vers_def_process(vdfisp, ifl, ofl) == S_ERROR) in process_elf()
3001 ld_sup_section(ofl, isp->is_name, isp->is_shdr, ndx, in process_elf()
3009 if (aplist_append(&(ofl->ofl_ismove), isp, in process_elf()
3021 ofl) == S_ERROR) in process_elf()
3037 (ld_unwind_register(osp, ofl) == S_ERROR)) in process_elf()
3050 (process_capinfo(ofl, ifl, capinfoisp) == S_ERROR)) in process_elf()
3060 (void) ld_sym_nodirect(sifisp, ifl, ofl); in process_elf()
3107 Word flags, Ofl_desc *ofl, Rej_desc *rej, Ifl_desc **ifl_ret) in ld_process_ifl() argument
3140 DBG_CALL(Dbg_file_rejected(ofl->ofl_lml, &_rej, in ld_process_ifl()
3155 for (APLIST_TRAVERSE(ofl->ofl_ars, idx, adp)) { in ld_process_ifl()
3167 DBG_CALL(Dbg_file_reuse(ofl->ofl_lml, name, in ld_process_ifl()
3170 if (!ld_process_archive(name, -1, adp, ofl)) in ld_process_ifl()
3180 adp = ld_ar_setup(name, elf, ofl); in ld_process_ifl()
3186 ld_sup_file(ofl, name, ELF_K_AR, flags, elf); in ld_process_ifl()
3201 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_CNTL), in ld_process_ifl()
3206 if (!ld_process_archive(name, -1, adp, ofl)) in ld_process_ifl()
3233 DBG_CALL(Dbg_file_rejected(ofl->ofl_lml, &_rej, in ld_process_ifl()
3244 DBG_CALL(Dbg_file_rejected(ofl->ofl_lml, &_rej, in ld_process_ifl()
3265 apl = ofl->ofl_objs; in ld_process_ifl()
3267 apl = ofl->ofl_sos; in ld_process_ifl()
3288 DBG_CALL(Dbg_file_skip(ofl->ofl_lml, in ld_process_ifl()
3314 ld_eprintf(ofl, ERR_WARNING, in ld_process_ifl()
3327 ifl = ifl_setup(name, ehdr, elf, flags, ofl, rej); in ld_process_ifl()
3338 if (ofl->ofl_flags1 & FLG_OF1_IGNORE) in ld_process_ifl()
3343 (*ld_targ.t_mr.mr_mach_eflags)(ehdr, ofl); in ld_process_ifl()
3344 error = process_elf(ifl, elf, ofl); in ld_process_ifl()
3347 if ((ofl->ofl_flags & FLG_OF_STATIC) || in ld_process_ifl()
3348 !(ofl->ofl_flags & FLG_OF_DYNLIBS)) { in ld_process_ifl()
3349 ld_eprintf(ofl, ERR_FATAL, in ld_process_ifl()
3372 if (ofl->ofl_flags1 & FLG_OF1_ZDIRECT) in ld_process_ifl()
3374 if (ofl->ofl_flags1 & FLG_OF1_LAZYLD) in ld_process_ifl()
3376 if (ofl->ofl_flags1 & FLG_OF1_GRPPRM) in ld_process_ifl()
3378 if (ofl->ofl_flags1 & FLG_OF1_DEFERRED) in ld_process_ifl()
3382 error = process_elf(ifl, elf, ofl); in ld_process_ifl()
3388 ofl->ofl_flags |= FLG_OF_SYMINFO; in ld_process_ifl()
3395 if (OFL_GUIDANCE(ofl, FLG_OFG_NO_LAZY) && in ld_process_ifl()
3397 ld_eprintf(ofl, ERR_GUIDANCE, in ld_process_ifl()
3399 ofl->ofl_guideflags |= FLG_OFG_NO_LAZY; in ld_process_ifl()
3406 if (OFL_GUIDANCE(ofl, FLG_OFG_NO_DB)) { in ld_process_ifl()
3407 ld_eprintf(ofl, ERR_GUIDANCE, in ld_process_ifl()
3409 ofl->ofl_guideflags |= FLG_OFG_NO_DB; in ld_process_ifl()
3417 DBG_CALL(Dbg_file_rejected(ofl->ofl_lml, &_rej, in ld_process_ifl()
3430 DBG_CALL(Dbg_file_rejected(ofl->ofl_lml, &_rej, in ld_process_ifl()
3453 ld_process_open(const char *opath, const char *ofile, int *fd, Ofl_desc *ofl, in ld_process_open() argument
3461 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_BEGIN), npath); in ld_process_open()
3478 ld_sup_open(ofl, &npath, &nfile, fd, flags, &elf, NULL, 0, in ld_process_open()
3484 return (ld_process_ifl(npath, nfile, *fd, elf, flags, ofl, rej, in ld_process_open()
3495 Ofl_desc *ofl, Rej_desc *rej) in ld_process_mem() argument
3502 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_MEMORY), path); in ld_process_mem()
3506 open_ret = ld_process_ifl(path, file, 0, elf, 0, ofl, rej, &ifl); in ld_process_mem()
3519 Ofl_desc *ofl, Rej_desc *rej) in process_req_lib() argument
3537 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_FIL_PTHTOLONG), in process_req_lib()
3548 DBG_CALL(Dbg_libs_req(ofl->ofl_lml, sdf->sdf_name, in process_req_lib()
3561 open_ret = ld_process_open(_path, &_path[dlen], &fd, ofl, in process_req_lib()
3584 ld_finish_libs(Ofl_desc *ofl) in ld_finish_libs() argument
3593 ofl->ofl_flags |= FLG_OF_DYNLIBS; in ld_finish_libs()
3595 for (APLIST_TRAVERSE(ofl->ofl_soneed, idx1, sdf)) { in ld_finish_libs()
3612 for (APLIST_TRAVERSE(ofl->ofl_sos, idx2, ifl)) { in ld_finish_libs()
3632 DBG_CALL(Dbg_libs_req(ofl->ofl_lml, sdf->sdf_name, in ld_finish_libs()
3635 ld_eprintf(ofl, ERR_WARNING, in ld_finish_libs()
3643 &fd, ofl, 0, &_rej, &ifl); in ld_finish_libs()
3652 ld_eprintf(ofl, ERR_WARNING, in ld_finish_libs()
3667 for (APLIST_TRAVERSE(ofl->ofl_ulibdirs, idx2, path)) { in ld_finish_libs()
3670 ifl = process_req_lib(sdf, path, file, ofl, &_rej); in ld_finish_libs()
3699 DBG_CALL(Dbg_libs_path(ofl->ofl_lml, rpath, in ld_finish_libs()
3710 file, ofl, &_rej); in ld_finish_libs()
3734 for (APLIST_TRAVERSE(ofl->ofl_dlibdirs, idx2, path)) { in ld_finish_libs()
3737 ifl = process_req_lib(sdf, path, file, ofl, &rej); in ld_finish_libs()
3764 ld_eprintf(ofl, ERR_WARNING, in ld_finish_libs()
3771 ld_eprintf(ofl, ERR_WARNING, in ld_finish_libs()
3780 return (ld_vers_verify(ofl)); in ld_finish_libs()