From: H.J. Lu Date: Thu, 8 May 2003 19:54:33 +0000 (+0000) Subject: 2003-05-08 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf1e742e90146a4a4defde6e8790c8ce6cbe5a45;p=binutils-gdb.git 2003-05-08 H.J. Lu * elflink.h (elf_add_default_symbol): After skipping the unversioned symbol, go to non-default one. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 59aba2e29e9..6b1e021e2db 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-05-08 H.J. Lu + + * elflink.h (elf_add_default_symbol): After skipping the + unversioned symbol, go to non-default one. + 2003-05-07 H.J. Lu * elfxx-ia64.c (_bfd_elf_link_hash_hide_symbol): Also clear the diff --git a/bfd/elflink.h b/bfd/elflink.h index ade717dc74f..83fcff41768 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)