Home | History | Annotate | Download | only in ld

Lines Matching refs:pattern

121 /* Return TRUE if the PATTERN argument is a wildcard pattern.
122 Although backslashes are treated specially if a pattern contains
124 be enough to cause the pattern to be treated as a wildcard.
126 #define wildcardp(pattern) (strpbrk ((pattern), "?*[") != NULL)
146 name_match (const char *pattern, const char *name)
148 if (wildcardp (pattern))
149 return fnmatch (pattern, name, 0);
150 return strcmp (pattern, name);
153 /* If PATTERN is of the form archive:file, return a pointer to the
157 archive_path (const char *pattern)
164 p = strchr (pattern, link_info.path_separator);
171 if (p == pattern + 1 && ISALPHA (*pattern))
359 match_simple_wild (const char *pattern, const char *name)
361 /* The first four characters of the pattern are guaranteed valid
363 if (pattern[0] != name[0] || pattern[1] != name[1]
364 || pattern[2] != name[2] || pattern[3] != name[3])
367 pattern += 4;
369 while (*pattern != '*')
370 if (*name++ != *pattern++)
6410 /* If the wild pattern was marked KEEP, the member sections
7690 /* If PREV is NULL, return first version pattern matching particular symbol.
7691 If PREV is non-NULL, return first version pattern matching particular
7735 e.pattern = c_sym;
7738 while (expr && strcmp (expr->pattern, c_sym) == 0)
7748 e.pattern = cxx_sym;
7751 while (expr && strcmp (expr->pattern, cxx_sym) == 0)
7761 e.pattern = java_sym;
7764 while (expr && strcmp (expr->pattern, java_sym) == 0)
7785 if (!expr->pattern)
7788 if (expr->pattern[0] == '*' && expr->pattern[1] == '\0')
7797 if (fnmatch (expr->pattern, s, 0) == 0)
7811 /* Return NULL if the PATTERN argument is a glob pattern, otherwise,
7815 realsymbol (const char *pattern)
7819 char *s, *symbol = (char *) xmalloc (strlen (pattern) + 1);
7821 for (p = pattern, s = symbol; *p != '\0'; ++p)
7823 /* It is a glob pattern only if there is no preceding
7853 return pattern;
7859 pattern to be matched against symbol names. */
7874 ret->pattern = literal_p ? new_name : realsymbol (new_name);
7875 if (ret->pattern == NULL)
7877 ret->pattern = new_name;
7924 return htab_hash_string (e->pattern);
7935 return strcmp (e1->pattern, e2->pattern) == 0;
7986 while (e1 && strcmp (e1->pattern, e->pattern) == 0);
7991 /* FIXME: Memory leak. Sometimes pattern is not
7993 /* free (e->pattern); */
8061 while (e2 && strcmp (e1->pattern, e2->pattern) == 0)
8065 " in version information\n"), e1->pattern);
8071 if (strcmp (e1->pattern, e2->pattern) == 0
8074 " in version information\n"), e1->pattern);
8088 while (e2 && strcmp (e1->pattern, e2->pattern) == 0)
8093 e1->pattern);
8099 if (strcmp (e1->pattern, e2->pattern) == 0
8102 " in version information\n"), e1->pattern);