From patchwork Tue Dec 30 19:21:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lynn A. Boger" X-Patchwork-Id: 424679 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 779C31400A0 for ; Wed, 31 Dec 2014 06:22:02 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=I5mKv9RoOBjR4ezHstGRXN7/FYkopt1QXkRAHvTDUaL2CX 7cjZasYqQF4Buyxw1Krkwe8xwxfKVJT3YZH/oca0spi3lw1WkYxn8KwzP+55eTW7 G//tBSVCBz3rsBrzChDowt4PwcAQiPakFASHzEJZ/sGTtut2zUUg9eGf19NgM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=ii+7eThQlR+EBej4n43GF3njpKI=; b=scARb/l6R6lj9Orei3et TUAhEkKRusgP/9VS7+YsmXo6ZOdMXHHNb0cCPro5UjrRWcRWEqVMTpYfWyP/pcY/ dYvV9fyjdYanRwD70CP/GIGcjEKEdz14c3Wby+p7wQq4plKP1kZK81ZIYPflwBq5 A56Wqvd3r76E04hb3mHWZhA= Received: (qmail 10226 invoked by alias); 30 Dec 2014 19:21:55 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 10215 invoked by uid 89); 30 Dec 2014 19:21:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e39.co.us.ibm.com Received: from e39.co.us.ibm.com (HELO e39.co.us.ibm.com) (32.97.110.160) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 30 Dec 2014 19:21:51 +0000 Received: from /spool/local by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 30 Dec 2014 12:21:48 -0700 Received: from d01dlp03.pok.ibm.com (9.56.250.168) by e39.co.us.ibm.com (192.168.1.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 30 Dec 2014 12:21:47 -0700 Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id D3575C9003C for ; Tue, 30 Dec 2014 14:13:48 -0500 (EST) Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sBUJLk4i30670854 for ; Tue, 30 Dec 2014 19:21:46 GMT Received: from d01av04.pok.ibm.com (localhost [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sBUJLjT4016526 for ; Tue, 30 Dec 2014 14:21:45 -0500 Received: from oc2602623110.ibm.com (oc2602623110.ibm.com.rchland.ibm.com [9.10.86.28]) by d01av04.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id sBUJLjGf016507; Tue, 30 Dec 2014 14:21:45 -0500 Message-ID: <54A2FB49.9050600@linux.vnet.ibm.com> Date: Tue, 30 Dec 2014 13:21:45 -0600 From: "Lynn A. Boger" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: gcc-patches , "gofrontend-dev@googlegroups.com" , Ian Taylor Subject: [PATCH, libgo] Backport for handling of 64 bit symbol tables in gccgo X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14123019-0033-0000-0000-0000032A21E2 X-IsSubscribed: yes Hi, Please backport the following fix to the gcc 4.9 branch. 2014-12-30 Lynn Boger * gcc/go/gofrontend/import-archive.cc: Recognize 64-bit symbol tables Index: gcc/go/gofrontend/import-archive.cc =================================================================== --- gcc/go/gofrontend/import-archive.cc (revision 218817) +++ gcc/go/gofrontend/import-archive.cc (working copy) @@ -295,6 +295,15 @@ Archive_file::interpret_header(const Archive_heade // This is the symbol table. pname->clear(); } + else if (hdr->ar_name[1] == 'S' && hdr->ar_name[2] == 'Y' + && hdr->ar_name[3] == 'M' && hdr->ar_name[4] == '6' + && hdr->ar_name[5] == '4' && hdr->ar_name[6] == '/' + && hdr->ar_name[7] == ' ' + ) + { + // 64-bit symbol table. + pname->clear(); + } else if (hdr->ar_name[1] == '/') { // This is the extended name table.