From: H.J. Lu Date: Thu, 15 May 2003 13:48:53 +0000 (+0000) Subject: 2003-05-14 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a15d9d3a9827e6156a9db73dfe0b8c67804aae2d;p=binutils-gdb.git 2003-05-14 H.J. Lu * elflink.h (elf_link_check_versioned_symbol): Also allow the base version. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e22b592fc6e..e244ba3580b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-05-15 H.J. Lu + + * elflink.h (elf_link_check_versioned_symbol): Also allow + the base version. + 2003-05-15 Alan Modra H.J. Lu 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;