aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2002-08-14 03:25:48 +0000
committerH.J. Lu <hjl.tools@gmail.com>2002-08-14 03:25:48 +0000
commitc828c7718e56b25f8d007081addec8646a47de52 (patch)
tree1fb2f00e9ab870b7dc240be255d6ea564fb3bab7 /bfd/elflink.h
parentebafbe8353de91ee76a85f3339f631782a04adc1 (diff)
downloadgdb-c828c7718e56b25f8d007081addec8646a47de52.zip
gdb-c828c7718e56b25f8d007081addec8646a47de52.tar.gz
gdb-c828c7718e56b25f8d007081addec8646a47de52.tar.bz2
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.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 0840f8e..480bd17 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;