mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
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:
@ -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>
|
2003-05-15 Alan Modra <amodra@bigpond.net.au>
|
||||||
H.J. Lu <hongjiu.lu@intel.com>
|
H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
@ -4334,6 +4334,7 @@ elf_link_check_versioned_symbol (info, h)
|
|||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
Elf_Internal_Versym iver;
|
Elf_Internal_Versym iver;
|
||||||
|
unsigned short version_index;
|
||||||
|
|
||||||
if (ELF_ST_BIND (isym->st_info) == STB_LOCAL
|
if (ELF_ST_BIND (isym->st_info) == STB_LOCAL
|
||||||
|| isym->st_shndx == SHN_UNDEF)
|
|| isym->st_shndx == SHN_UNDEF)
|
||||||
@ -4354,9 +4355,10 @@ elf_link_check_versioned_symbol (info, h)
|
|||||||
abort ();
|
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 (extversym);
|
||||||
free (isymbuf);
|
free (isymbuf);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Reference in New Issue
Block a user