Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Oct 2010 21:49:59 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r214360 - projects/binutils-2.17/contrib/binutils/bfd
Message-ID:  <201010252149.o9PLnx0T078199@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010252149.o9PLnx0T078199>