mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 06:23:58 +08:00
PR ld/10515
* linker.c (bfd_find_version_for_sym): Revert warning.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2009-08-26 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
PR ld/10515
|
||||||
|
* linker.c (bfd_find_version_for_sym): Revert warning.
|
||||||
|
|
||||||
2009-08-26 Alan Modra <amodra@bigpond.net.au>
|
2009-08-26 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
PR ld/10515
|
PR ld/10515
|
||||||
|
14
bfd/linker.c
14
bfd/linker.c
@ -3277,7 +3277,6 @@ bfd_find_version_for_sym (struct bfd_elf_version_tree *verdefs,
|
|||||||
struct bfd_elf_version_tree *t;
|
struct bfd_elf_version_tree *t;
|
||||||
struct bfd_elf_version_tree *local_ver, *global_ver, *exist_ver;
|
struct bfd_elf_version_tree *local_ver, *global_ver, *exist_ver;
|
||||||
struct bfd_elf_version_tree *star_local_ver, *star_global_ver;
|
struct bfd_elf_version_tree *star_local_ver, *star_global_ver;
|
||||||
unsigned int match_count = 0;
|
|
||||||
|
|
||||||
local_ver = NULL;
|
local_ver = NULL;
|
||||||
global_ver = NULL;
|
global_ver = NULL;
|
||||||
@ -3292,7 +3291,6 @@ bfd_find_version_for_sym (struct bfd_elf_version_tree *verdefs,
|
|||||||
|
|
||||||
while ((d = (*t->match) (&t->globals, d, sym_name)) != NULL)
|
while ((d = (*t->match) (&t->globals, d, sym_name)) != NULL)
|
||||||
{
|
{
|
||||||
++match_count;
|
|
||||||
if (d->literal || strcmp (d->pattern, "*") != 0)
|
if (d->literal || strcmp (d->pattern, "*") != 0)
|
||||||
global_ver = t;
|
global_ver = t;
|
||||||
else
|
else
|
||||||
@ -3303,10 +3301,7 @@ bfd_find_version_for_sym (struct bfd_elf_version_tree *verdefs,
|
|||||||
/* If the match is a wildcard pattern, keep looking for
|
/* If the match is a wildcard pattern, keep looking for
|
||||||
a more explicit, perhaps even local, match. */
|
a more explicit, perhaps even local, match. */
|
||||||
if (d->literal)
|
if (d->literal)
|
||||||
{
|
break;
|
||||||
match_count = 0;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d != NULL)
|
if (d != NULL)
|
||||||
@ -3319,7 +3314,6 @@ bfd_find_version_for_sym (struct bfd_elf_version_tree *verdefs,
|
|||||||
|
|
||||||
while ((d = (*t->match) (&t->locals, d, sym_name)) != NULL)
|
while ((d = (*t->match) (&t->locals, d, sym_name)) != NULL)
|
||||||
{
|
{
|
||||||
++match_count;
|
|
||||||
if (d->literal || strcmp (d->pattern, "*") != 0)
|
if (d->literal || strcmp (d->pattern, "*") != 0)
|
||||||
local_ver = t;
|
local_ver = t;
|
||||||
else
|
else
|
||||||
@ -3331,7 +3325,6 @@ bfd_find_version_for_sym (struct bfd_elf_version_tree *verdefs,
|
|||||||
/* An exact match overrides a global wildcard. */
|
/* An exact match overrides a global wildcard. */
|
||||||
global_ver = NULL;
|
global_ver = NULL;
|
||||||
star_global_ver = NULL;
|
star_global_ver = NULL;
|
||||||
match_count = 0;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3341,11 +3334,6 @@ bfd_find_version_for_sym (struct bfd_elf_version_tree *verdefs,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match_count > 1)
|
|
||||||
(*_bfd_error_handler)
|
|
||||||
(_("warning: multiple wildcard version script matches for %s\n"),
|
|
||||||
sym_name);
|
|
||||||
|
|
||||||
if (global_ver == NULL && local_ver == NULL)
|
if (global_ver == NULL && local_ver == NULL)
|
||||||
global_ver = star_global_ver;
|
global_ver = star_global_ver;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user