summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/bfd
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-10-25 21:49:59 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-10-25 21:49:59 +0000
commitb3a60f22931b262458ab7c5fc74346816309d999 (patch)
tree7c4060283dd1b0ceef758a48cac4495606e45db3 /contrib/binutils/bfd
parente43baf2f6fbac3caf9d233c3896a4d1e619c32fb (diff)
downloadFreeBSD-src-b3a60f22931b262458ab7c5fc74346816309d999.zip
FreeBSD-src-b3a60f22931b262458ab7c5fc74346816309d999.tar.gz
Fix a manifestation of GCC bug 16625 that caused ld >= 2.17 to fail on
64-bit PowerPC when linking multiple C++ files referencing the same method, defined in a common header, when that method had a switch statement with more than 4 cases. This change fixes compilation of LLVM tblgen on 64-bit PPC with binutils 2.17. Lots of help from: dim Upstream after: more testing
Diffstat (limited to 'contrib/binutils/bfd')
-rw-r--r--contrib/binutils/bfd/elf64-ppc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/binutils/bfd/elf64-ppc.c b/contrib/binutils/bfd/elf64-ppc.c
index f61ed8a..698f8e4 100644
--- a/contrib/binutils/bfd/elf64-ppc.c
+++ b/contrib/binutils/bfd/elf64-ppc.c
@@ -9640,6 +9640,9 @@ ppc64_elf_action_discarded (asection *sec)
if (strcmp (".toc1", sec->name) == 0)
return 0;
+ if (strcmp (".got", sec->name) == 0)
+ return 0;
+
return _bfd_elf_default_action_discarded (sec);
}
OpenPOWER on IntegriCloud