Lines Matching defs:vdp
39 Ver_desc *vdp;
41 for (APLIST_TRAVERSE(alp, idx, vdp)) {
42 if (vdp->vd_hash != hash)
44 if (strcmp(vdp->vd_name, name) == 0)
45 return (vdp);
59 Ver_desc *vdp;
61 if ((vdp = libld_calloc(sizeof (Ver_desc), 1)) == NULL)
64 vdp->vd_name = name;
65 vdp->vd_hash = hash;
67 if (aplist_append(alpp, vdp, AL_CNT_VERDESCS) == NULL)
70 return (vdp);
91 Ver_desc *vdp;
158 for (APLIST_TRAVERSE(vp->vd_deps, idx, vdp))
159 if (vers_visit_children(ofl, vdp, 1) == S_ERROR)
174 Ver_desc *vdp;
182 for (APLIST_TRAVERSE(ofl->ofl_verdesc, idx1, vdp))
183 if ((is_cyclic = vers_visit_children(ofl, vdp, 0)) == S_ERROR)
189 for (APLIST_TRAVERSE(ofl->ofl_verdesc, idx1, vdp)) {
193 const char *name = vdp->vd_name;
199 if (vdp->vd_ndx == 0) {
201 MSG_INTL(MSG_VER_UNDEF), name, vdp->vd_ref->vd_name,
202 vdp->vd_ref->vd_file->ifl_name);
206 DBG_CALL(Dbg_ver_desc_entry(ofl->ofl_lml, vdp));
212 if ((vdp->vd_flags &
215 vdp->vd_name));
229 for (APLIST_TRAVERSE(vdp->vd_deps, idx2, _vdp)) {
232 vdp = _vdp;
242 if (vdp->vd_flags & VER_FLG_BASE)
245 if (vdp->vd_flags & VER_FLG_WEAK)
250 if (sdp = ld_sym_find(name, vdp->vd_hash, &where, ofl)) {
264 sdp->sd_aux->sa_overndx = vdp->vd_ndx;
291 if ((sdp = ld_sym_enter(name, sym, vdp->vd_hash,
292 vdp->vd_file, ofl, 0, SHN_ABS,
298 sdp->sd_aux->sa_overndx = vdp->vd_ndx;
308 vers_derefer(Ifl_desc *ifl, Ver_desc *vdp, int weak)
312 Ver_index *vip = &ifl->ifl_verndx[vdp->vd_ndx];
324 if ((weak && (vdp->vd_flags & VER_FLG_WEAK)) || (!weak))
327 for (APLIST_TRAVERSE(vdp->vd_deps, idx, _vdp))
365 Ver_desc *vdp;
383 vdp = vip->vi_desc;
387 vdp->vd_flags &= ~VER_FLG_WEAK;
404 for (APLIST_TRAVERSE(ifl->ifl_verdesc, idx2, vdp)) {
409 vip = &ifl->ifl_verndx[vdp->vd_ndx];
414 type = vdp->vd_flags & VER_FLG_WEAK;
415 for (APLIST_TRAVERSE(vdp->vd_deps, idx3, _vdp))
463 vers_select(Ofl_desc *ofl, Ifl_desc *ifl, Ver_desc *vdp, const char *ref)
467 Ver_index *vip = &ifl->ifl_verndx[vdp->vd_ndx];
472 for (APLIST_TRAVERSE(vdp->vd_deps, idx, _vdp))
480 Ver_desc *vdp;
493 for (APLIST_TRAVERSE(ifl->ifl_verdesc, idx1, vdp)) {
494 int ndx = vdp->vd_ndx;
496 vip[ndx].vi_name = vdp->vd_name;
497 vip[ndx].vi_desc = vdp;
503 if (avail || (vdp->vd_flags & VER_FLG_BASE))
512 if (vdp->vd_flags & VER_FLG_WEAK)
776 Ver_desc *vdp;
779 for (APLIST_TRAVERSE(ifl->ifl_verdesc, idx2, vdp)) {
780 if (strcmp(sdv->sdv_name, vdp->vd_name) == 0) {
786 vers_select(ofl, ifl, vdp, sdv->sdv_ref);
955 Ver_desc *vdp;
978 if ((vdp = ld_vers_desc(name, (Word)elf_hash(name),
986 vdp->vd_ndx = ofl->ofl_vercnt = VER_NDX_GLOBAL;
987 vdp->vd_flags |= VER_FLG_BASE;
989 return (vdp);
1047 Ver_desc *vdp;
1050 for (APLIST_TRAVERSE(ifl->ifl_verdesc, idx3, vdp)) {
1051 if (strcmp(sdv->sdv_name, vdp->vd_name) == 0) {
1059 vip = &ifl->ifl_verndx[vdp->vd_ndx];