Lines Matching refs:match
158 * A fuzzy match is where we have a local symbol matching the name of a
162 * A weak fuzzy match is when a weak symbol was resolved and matched to
169 iidesc_match_t *match = arg2;
170 if (streq(iidesc->ii_name, match->iim_name) == 0)
176 if (match->iim_bind == STB_GLOBAL) {
177 match->iim_ret = iidesc;
179 } else if (match->iim_fuzzy && match->iim_ret == NULL) {
180 match->iim_ret = iidesc;
181 /* continue to look for strong match */
187 if (match->iim_bind == STB_LOCAL &&
188 match->iim_file != NULL &&
189 streq(iidesc->ii_owner, match->iim_file)) {
190 match->iim_ret = iidesc;
201 find_iidesc(tdata_t *td, iidesc_match_t *match)
203 match->iim_ret = NULL;
204 iter_iidescs_by_name(td, match->iim_name,
205 matching_iidesc, match);
206 return (match->iim_ret);
230 * reasonable match.
310 * for a weak symbol, we need to copy it and rename it to match
350 iidesc_match_t match;
352 match.iim_fuzzy = fuzzymatch;
353 match.iim_file = NULL;
382 match.iim_name = (char *)strdata->d_buf + sym.st_name;
383 match.iim_bind = GELF_ST_BIND(sym.st_info);
387 bname = strrchr(match.iim_name, '/');
388 match.iim_file = bname == NULL ? match.iim_name : bname + 1;
402 if (ignore_symbol(&sym, match.iim_name))
405 iidesc = find_iidesc(td, &match);
414 if (!check_for_weak(&sym, match.iim_file, data, nent, strdata,
424 debug(3, "Weak symbol %s resolved to %s\n", match.iim_name,
431 iidesc, match.iim_name, match.iim_file);