diff options
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elflink.h | 3 |
2 files changed, 7 insertions, 1 deletions
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 <hongjiu.lu@intel.com> + + * elflink.h (elf_add_default_symbol): After skipping the + unversioned symbol, go to non-default one. + 2003-05-07 H.J. Lu <hongjiu.lu@intel.com> * 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) |