aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-03-03 00:27:52 +0000
committerIan Lance Taylor <ian@airs.com>1997-03-03 00:27:52 +0000
commita48ef404c7175df1b49e4d3bdfe341816e9429dd (patch)
treeefde618c40ae4aed747df34bc800a73ff39c26f0 /bfd/elflink.h
parent54d26e151e1522f74c44157e376ec3fc2601ef11 (diff)
downloadgdb-a48ef404c7175df1b49e4d3bdfe341816e9429dd.zip
gdb-a48ef404c7175df1b49e4d3bdfe341816e9429dd.tar.gz
gdb-a48ef404c7175df1b49e4d3bdfe341816e9429dd.tar.bz2
* elflink.h (elf_link_find_version_dependencies): Check that
DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is set.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index c1dd8b3..13406eb 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -2442,6 +2442,7 @@ elf_link_find_version_dependencies (h, data)
/* We only care about symbols defined in shared objects with version
information. */
if ((h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) == 0
+ || (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR) != 0
|| h->dynindx == -1
|| h->verinfo.verdef == NULL)
return true;