From bf1e742e90146a4a4defde6e8790c8ce6cbe5a45 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 8 May 2003 19:54:33 +0000 Subject: [PATCH] 2003-05-08 H.J. Lu * elflink.h (elf_add_default_symbol): After skipping the unversioned symbol, go to non-default one. --- bfd/ChangeLog | 5 +++++ bfd/elflink.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 59aba2e..6b1e021 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 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) -- 2.7.4