From: Alan Modra Date: Thu, 6 Dec 2012 00:09:13 +0000 (+0000) Subject: * elfxx-mips.c (allocate_dynrelocs): Correct test for symbol X-Git-Tag: cgen-snapshot-20130101~213 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=625ef6dc5557679f800face6510b959b23892752;p=platform%2Fupstream%2Fbinutils.git * elfxx-mips.c (allocate_dynrelocs): Correct test for symbol defined in a regular file to include common symbols. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 46095f7..3b91a85 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2012-12-06 Alan Modra + + * elfxx-mips.c (allocate_dynrelocs): Correct test for symbol + defined in a regular file to include common symbols. + 2012-12-05 Leif Ekblad * config.bfd: Add x86_64-*-rdos. diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index a4aa125..4036273 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;