diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2002-08-09 04:40:29 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2002-08-09 04:40:29 +0000 |
commit | d8bbe7789d141942024ccaa7c389f212b4e67a1f (patch) | |
tree | 08808375f9f753101c7d4801615b390fbb1a6f75 /bfd/elflink.h | |
parent | 79500683989c674a4b3906c415e313ccdc32ce62 (diff) | |
download | gdb-d8bbe7789d141942024ccaa7c389f212b4e67a1f.zip gdb-d8bbe7789d141942024ccaa7c389f212b4e67a1f.tar.gz gdb-d8bbe7789d141942024ccaa7c389f212b4e67a1f.tar.bz2 |
2002-08-08 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_add_default_symbol): Don't warn a defintion
overrides an indirect versioned symbol.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r-- | bfd/elflink.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h index b1732e4..d849478 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 { |