summaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2012-12-06 00:09:12 +0000
committerAlan Modra <amodra@bigpond.net.au>2012-12-06 00:09:12 +0000
commit4fcf5f91e9e40cae61c12945b5efe5ff17969d44 (patch)
treebbd0d28d87a876f21a45d4bacdf4e04d63f68346 /bfd/elfxx-mips.c
parent43e41d7d91a69aa807bde2bb262c2e2d41817bd6 (diff)
downloadbinutils-redhat-4fcf5f91e9e40cae61c12945b5efe5ff17969d44.tar.gz
* elfxx-mips.c (allocate_dynrelocs): Correct test for symbol
defined in a regular file to include common symbols.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index a4aa125c0e..4036273405 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -8568,7 +8568,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
if (! info->relocatable
&& hmips->possibly_dynamic_relocs != 0
&& (h->root.type == bfd_link_hash_defweak
- || !h->def_regular
+ || (!h->def_regular && !ELF_COMMON_DEF_P (h))
|| info->shared))
{
bfd_boolean do_copy = TRUE;