From owner-svn-src-projects@FreeBSD.ORG Mon Oct 25 21:50:00 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EA631065694; Mon, 25 Oct 2010 21:50:00 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id F171F8FC17; Mon, 25 Oct 2010 21:49:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9PLnxQK078201; Mon, 25 Oct 2010 21:49:59 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9PLnx0T078199; Mon, 25 Oct 2010 21:49:59 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201010252149.o9PLnx0T078199@svn.freebsd.org> From: Nathan Whitehorn Date: Mon, 25 Oct 2010 21:49:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214360 - projects/binutils-2.17/contrib/binutils/bfd X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2010 21:50:00 -0000 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); }