2002-08-13 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 14 Aug 2002 03:25:48 +0000 (03:25 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 14 Aug 2002 03:25:48 +0000 (03:25 +0000)
* elflink.h (NAME(bfd_elf,size_dynamic_sections): Don't count
definitions in shared objects when checking symbol with
undefined version.

bfd/ChangeLog
bfd/elflink.h

index cc54f3c0e5185355e1c3f46e745e4a55954da8a4..c9f0efe30e1b0f92a266f4e59bce945991a570d7 100644 (file)
@@ -1,3 +1,9 @@
+2002-08-13  H.J. Lu <hjl@gnu.org>
+
+       * elflink.h (NAME(bfd_elf,size_dynamic_sections): Don't count
+       definitions in shared objects when checking symbol with
+       undefined version.
+
 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
 
        * elf32-m68hc11.c (elf32_m68hc11_gc_mark_hook): New for section GC.
index 0840f8ea977e7aa95920471e81327c02ba5aec7e..480bd1786afacbd3869cbd30a273d847974cd6cb 100644 (file)
@@ -3068,8 +3068,11 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
                }
              free (newname);
 
-             /* Mark this version if there is a definition.  */
+             /* Mark this version if there is a definition and it is
+                not defined in a shared object.  */
              if (newh != NULL
+                 && ((newh->elf_link_hash_flags
+                      & ELF_LINK_HASH_DEF_DYNAMIC) == 0)
                  && (newh->root.type == bfd_link_hash_defined
                      || newh->root.type == bfd_link_hash_defweak))
                d->symver = 1;