From 05a2f7099ef69844581125b8a11e8b2280bc07ae Mon Sep 17 00:00:00 2001 From: hjl Date: Wed, 14 Aug 2002 03:25:47 +0000 Subject: [PATCH] 2002-08-13 H.J. Lu * elflink.h (NAME(bfd_elf,size_dynamic_sections): Don't count definitions in shared objects when checking symbol with undefined version. --- bfd/ChangeLog | 6 ++++++ bfd/elflink.h | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cc54f3c0e5..c9f0efe30e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2002-08-13 H.J. Lu + + * 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 * elf32-m68hc11.c (elf32_m68hc11_gc_mark_hook): New for section GC. diff --git a/bfd/elflink.h b/bfd/elflink.h index 0840f8ea97..480bd1786a 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -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; -- 2.11.0