svn commit: r214360 - projects/binutils-2.17/contrib/binutils/bfd
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Mon Oct 25 21:50:00 UTC 2010
Author: nwhitehorn
Date: Mon Oct 25 21:49:59 2010
New Revision: 214360
URL: http://svn.freebsd.org/changeset/base/214360
Log:
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
Modified:
projects/binutils-2.17/contrib/binutils/bfd/elf64-ppc.c
Modified: projects/binutils-2.17/contrib/binutils/bfd/elf64-ppc.c
==============================================================================
--- projects/binutils-2.17/contrib/binutils/bfd/elf64-ppc.c Mon Oct 25 21:46:23 2010 (r214359)
+++ projects/binutils-2.17/contrib/binutils/bfd/elf64-ppc.c Mon Oct 25 21:49:59 2010 (r214360)
@@ -9640,6 +9640,9 @@ ppc64_elf_action_discarded (asection *se
if (strcmp (".toc1", sec->name) == 0)
return 0;
+ if (strcmp (".got", sec->name) == 0)
+ return 0;
+
return _bfd_elf_default_action_discarded (sec);
}
More information about the svn-src-projects
mailing list