* ld.texinfo (VERSION scripts): Symbol names are globbing patterns.

* ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
	the pattern in question is not a regexp.
	* ldlang.c:  Likewise.
	* ldlang.h:  Likewise.
	* ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
This commit is contained in:
Alan Modra
2002-02-14 04:24:33 +00:00
parent 1e30956ea4
commit 313e35ee7c
6 changed files with 23 additions and 11 deletions

View File

@@ -5020,7 +5020,7 @@ lang_vers_match_lang_java (expr, sym)
/* This is called for each variable name or match expression. */
struct bfd_elf_version_expr *
lang_new_vers_regex (orig, new, lang)
lang_new_vers_pattern (orig, new, lang)
struct bfd_elf_version_expr *orig;
const char *new;
const char *lang;
@@ -5193,7 +5193,7 @@ lang_do_version_exports_section ()
p = contents;
while (p < contents + len)
{
greg = lang_new_vers_regex (greg, p, NULL);
greg = lang_new_vers_pattern (greg, p, NULL);
p = strchr (p, '\0') + 1;
}
@@ -5204,7 +5204,7 @@ lang_do_version_exports_section ()
bfd_get_section_flags (is->the_bfd, sec) | SEC_EXCLUDE);
}
lreg = lang_new_vers_regex (NULL, "*", NULL);
lreg = lang_new_vers_pattern (NULL, "*", NULL);
lang_register_vers_node (command_line.version_exports_section,
lang_new_vers_node (greg, lreg), NULL);
}