From: H.J. Lu Date: Fri, 9 Aug 2002 04:40:29 +0000 (+0000) Subject: 2002-08-08 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8bbe7789d141942024ccaa7c389f212b4e67a1f;p=binutils-gdb.git 2002-08-08 H.J. Lu * elflink.h (elf_add_default_symbol): Don't warn a defintion overrides an indirect versioned symbol. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f597f9cc311..c35541f6fd7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-08-08 H.J. Lu + + * elflink.h (elf_add_default_symbol): Don't warn a defintion + overrides an indirect versioned symbol. + 2002-08-08 Jakub Jelinek * elf32-i386.c (elf_i386_relocate_section): Fill in proper addend diff --git a/bfd/elflink.h b/bfd/elflink.h index b1732e43c2f..d849478a8af 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -1085,10 +1085,13 @@ elf_add_default_symbol (abfd, info, h, name, sym, sec, value, if (override) { /* Here SHORTNAME is a versioned name, so we don't expect to see - the type of override we do in the case above. */ - (*_bfd_error_handler) - (_("%s: warning: unexpected redefinition of `%s'"), - bfd_archive_filename (abfd), shortname); + the type of override we do in the case above unless it is + overridden by a versioned definiton. */ + if (hi->root.type != bfd_link_hash_defined + && hi->root.type != bfd_link_hash_defweak) + (*_bfd_error_handler) + (_("%s: warning: unexpected redefinition of indirect versioned symbol `%s'"), + bfd_archive_filename (abfd), shortname); } else {