aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-05-08 19:54:33 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-05-08 19:54:33 +0000
commitbf1e742e90146a4a4defde6e8790c8ce6cbe5a45 (patch)
treee8510311947981b17755ed6dc7999cf664cfa693 /bfd/elflink.h
parent54c9a60f31b98386fa7f94ac3daf05a0ffe523fb (diff)
downloadbinutils-bf1e742e90146a4a4defde6e8790c8ce6cbe5a45.zip
binutils-bf1e742e90146a4a4defde6e8790c8ce6cbe5a45.tar.gz
binutils-bf1e742e90146a4a4defde6e8790c8ce6cbe5a45.tar.bz2
2003-05-08 H.J. Lu <hongjiu.lu@intel.com>
* elflink.h (elf_add_default_symbol): After skipping the unversioned symbol, go to non-default one.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index ade717d..83fcff4 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -1108,7 +1108,7 @@ elf_add_default_symbol (abfd, info, h, name, sym, psec, value,
return FALSE;
if (skip)
- return TRUE;
+ goto nondefault;
if (! override)
{
@@ -1203,6 +1203,7 @@ elf_add_default_symbol (abfd, info, h, name, sym, psec, value,
/* We also need to define an indirection from the nondefault version
of the symbol. */
+nondefault:
len = strlen (name);
shortname = bfd_hash_allocate (&info->hash->table, len);
if (shortname == NULL)