summaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2003-05-15 13:48:53 +0000
committerH.J. Lu <hjl@lucon.org>2003-05-15 13:48:53 +0000
commit2cdc0a1bf4772fd95599ae667c7a6eac315d1477 (patch)
treebab3bf3d0d5c4018b96f3684f21d5fb1e701e1fe /bfd/elflink.h
parent0c32b7ea9b2eea6cc6e781fff7c17d457af2eed4 (diff)
downloadgdb-2cdc0a1bf4772fd95599ae667c7a6eac315d1477.tar.gz
2003-05-14 H.J. Lu <hongjiu.lu@intel.com>
* elflink.h (elf_link_check_versioned_symbol): Also allow the base version.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 2c025edceee..c9618b47771 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -4334,6 +4334,7 @@ elf_link_check_versioned_symbol (info, h)
{
const char *name;
Elf_Internal_Versym iver;
+ unsigned short version_index;
if (ELF_ST_BIND (isym->st_info) == STB_LOCAL
|| isym->st_shndx == SHN_UNDEF)
@@ -4354,9 +4355,10 @@ elf_link_check_versioned_symbol (info, h)
abort ();
}
- if ((iver.vs_vers & VERSYM_VERSION) == 2)
+ version_index = iver.vs_vers & VERSYM_VERSION;
+ if (version_index == 1 || version_index == 2)
{
- /* This is the oldest (default) sym. We can use it. */
+ /* This is the base or first version. We can use it. */
free (extversym);
free (isymbuf);
return TRUE;