Lines Matching refs:ofl

88 vers_visit_children(Ofl_desc *ofl, Ver_desc *vp, int flag)
121 ld_eprintf(ofl, ERR_FATAL,
129 ld_eprintf(ofl, ERR_NONE,
136 ld_eprintf(ofl, ERR_NONE,
159 if (vers_visit_children(ofl, vdp, 1) == S_ERROR)
171 ld_vers_check_defs(Ofl_desc *ofl)
177 DBG_CALL(Dbg_ver_def_title(ofl->ofl_lml, ofl->ofl_name));
182 for (APLIST_TRAVERSE(ofl->ofl_verdesc, idx1, vdp))
183 if ((is_cyclic = vers_visit_children(ofl, vdp, 0)) == S_ERROR)
187 ofl->ofl_flags |= FLG_OF_FATAL;
189 for (APLIST_TRAVERSE(ofl->ofl_verdesc, idx1, vdp)) {
200 ld_eprintf(ofl, ERR_FATAL,
206 DBG_CALL(Dbg_ver_desc_entry(ofl->ofl_lml, vdp));
214 DBG_CALL(Dbg_ver_nointerface(ofl->ofl_lml,
221 ofl->ofl_verdefsz += sizeof (Verdef);
236 ofl->ofl_verdefsz += (cnt * sizeof (Verdaux));
250 if (sdp = ld_sym_find(name, vdp->vd_hash, &where, ofl)) {
276 ld_eprintf(ofl, ERR_WARNING,
289 DBG_CALL(Dbg_ver_symbol(ofl->ofl_lml, name));
292 vdp->vd_file, ofl, 0, SHN_ABS,
337 ld_vers_check_need(Ofl_desc *ofl)
348 strtbl = (OFL_IS_STATIC_OBJ(ofl)) ? ofl->ofl_strtab :
349 ofl->ofl_dynstrtab;
357 needndx = (ofl->ofl_vercnt > 0) ? (ofl->ofl_vercnt + 1) : 2;
362 for (APLIST_TRAVERSE(ofl->ofl_sos, idx1, ifl)) {
434 ofl->ofl_verneedsz += sizeof (Vernaux);
443 ofl->ofl_verneedsz += sizeof (Verneed);
453 if (ofl->ofl_verneedsz == 0)
454 ofl->ofl_flags &= ~FLG_OF_VERNEED;
463 vers_select(Ofl_desc *ofl, Ifl_desc *ifl, Ver_desc *vdp, const char *ref)
470 DBG_CALL(Dbg_ver_avail_entry(ofl->ofl_lml, vip, ref));
473 vers_select(ofl, ifl, _vdp, ref);
477 vers_index(Ofl_desc *ofl, Ifl_desc *ifl, int avail)
545 ld_eprintf(ofl, ERR_NONE,
549 ld_eprintf(ofl, ERR_NONE, MSG_INTL(MSG_VER_ADDVER),
563 ld_vers_sym_process(Ofl_desc *ofl, Is_desc *isp, Ifl_desc *ifl)
577 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_ELF_VERSYM),
596 ld_vers_def_process(Is_desc *isp, Ifl_desc *ifl, Ofl_desc *ofl)
613 ld_eprintf(ofl, ERR_FATAL,
628 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_VER_HIGHER),
640 DBG_CALL(Dbg_ver_def_title(ofl->ofl_lml, file));
685 if (!(ofl->ofl_flags & FLG_OF_RELOBJ))
686 ofl->ofl_flags |= FLG_OF_PROCRED;
698 if (ofl->ofl_vercnt == 0) {
699 if (ld_vers_base(ofl) ==
703 ofl->ofl_flags |= FLG_OF_VERDEF;
705 ofl->ofl_verdesc)) == NULL) {
707 &ofl->ofl_verdesc)) ==
712 ovdp->vd_ndx = (Half)++ofl->ofl_vercnt;
749 DBG_CALL(Dbg_ver_desc_entry(ofl->ofl_lml, ivdp));
757 vers_index(ofl, ifl, relobj)) == (Ver_index *)S_ERROR)
769 DBG_CALL(Dbg_ver_avail_title(ofl->ofl_lml, file));
786 vers_select(ofl, ifl, vdp, sdv->sdv_ref);
788 ld_eprintf(ofl, ERR_FATAL,
799 DBG_CALL(Dbg_ver_avail_entry(ofl->ofl_lml, vip, 0));
809 ofl->ofl_flags |= FLG_OF_VERNEED;
818 ld_vers_need_process(Is_desc *isp, Ifl_desc *ifl, Ofl_desc *ofl)
832 ld_eprintf(ofl, ERR_WARNING, MSG_INTL(MSG_VER_HIGHER),
839 DBG_CALL(Dbg_ver_need_title(ofl->ofl_lml, file));
861 if ((sdf = sdf_find(name, ofl->ofl_soneed)) == NULL) {
862 if ((sdf = sdf_add(name, &ofl->ofl_soneed)) ==
881 DBG_CALL(Dbg_ver_need_entry(ofl->ofl_lml, _cnt, name,
894 ld_vers_promote(Sym_desc *sdp, Word ndx, Ifl_desc *ifl, Ofl_desc *ofl)
927 ld_eprintf(ofl, ERR_FATAL, MSG_INTL(MSG_VER_INVALNDX),
953 ld_vers_base(Ofl_desc *ofl)
963 if ((name = ofl->ofl_soname) == NULL) {
964 const char *str = ofl->ofl_name;
971 name = ofl->ofl_name;
979 &ofl->ofl_verdesc)) == (Ver_desc *)S_ERROR)
986 vdp->vd_ndx = ofl->ofl_vercnt = VER_NDX_GLOBAL;
1001 ld_vers_verify(Ofl_desc *ofl)
1021 for (APLIST_TRAVERSE(ofl->ofl_soneed, idx1, sdf)) {
1061 ld_eprintf(ofl, ERR_FATAL,
1067 ld_eprintf(ofl, ERR_FATAL,