2003-05-14 H.J. Lu <hongjiu.lu@intel.com>

* elflink.h (elf_link_check_versioned_symbol): Also allow
	the base version.
This commit is contained in:
H.J. Lu 2003-05-15 13:48:53 +00:00
parent 09695f5689
commit a15d9d3a98
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
* elflink.h (elf_link_check_versioned_symbol): Also allow
the base version.
2003-05-15 Alan Modra <amodra@bigpond.net.au>
H.J. Lu <hongjiu.lu@intel.com>

View file

@ -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;