From patchwork Tue Dec 30 19:14:15 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: 424677 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 7199314009B for ; Wed, 31 Dec 2014 06:14:38 +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=hf/jc+Z4fNM9nDf7YIgjHB4Ko7okos1Kz9UYlKvukWBybo GcC98qwxVK/Zuy/N6jZSrD2RUrOjykWa1Y6oOK5ekw3rNQYpv6DZi8u26uOB/7LC wbEO6nYPAsjnKYUkhTSwPftcwF0GUWvDnlJZbISb1KW0NCjvdSNzRNituI0JA= 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=0hI5zUlI2Yz+v3JVTok+UG5V3vk=; b=ga6OgFpaBttOpt+cs7mR Jg+FOjTUdicrCpX3TJ6hsqYTdpymB1nohayzOcQUX0zQcC2cvpg/SRJ5phdJkNFl QqWIpU8EbmUSDDs1KWpO7Mh6bO0DX/bv2dm3ewrdu479+SmABJxURc4mHgv5M7cG eZTw5AEQ0x+QQCZqyGU0+QA= Received: (qmail 1004 invoked by alias); 30 Dec 2014 19:14:25 -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 913 invoked by uid 89); 30 Dec 2014 19:14:23 -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: e7.ny.us.ibm.com Received: from e7.ny.us.ibm.com (HELO e7.ny.us.ibm.com) (32.97.182.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 30 Dec 2014 19:14:20 +0000 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 30 Dec 2014 14:14:17 -0500 Received: from d01dlp03.pok.ibm.com (9.56.250.168) by e7.ny.us.ibm.com (192.168.1.107) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 30 Dec 2014 14:14:16 -0500 Received: from b01cxnp23033.gho.pok.ibm.com (b01cxnp23033.gho.pok.ibm.com [9.57.198.28]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id 4B898C9003C for ; Tue, 30 Dec 2014 14:06:18 -0500 (EST) Received: from d01av05.pok.ibm.com (d01av05.pok.ibm.com [9.56.224.195]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sBUJEFnu22085734 for ; Tue, 30 Dec 2014 19:14:15 GMT Received: from d01av05.pok.ibm.com (localhost [127.0.0.1]) by d01av05.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sBUJEFCF016846 for ; Tue, 30 Dec 2014 14:14:15 -0500 Received: from oc2602623110.ibm.com (oc2602623110.ibm.com.rchland.ibm.com [9.10.86.28]) by d01av05.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id sBUJEFOP016837; Tue, 30 Dec 2014 14:14:15 -0500 Message-ID: <54A2F987.8050103@linux.vnet.ibm.com> Date: Tue, 30 Dec 2014 13:14:15 -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@gcc.gnu.org" , "gofrontend-dev@googlegroups.com" , Ian Taylor Subject: [PATCH, libgo] Backport for PPC64 reloc fix to 4.9 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14123019-0037-0000-0000-0000003C4E50 X-IsSubscribed: yes Hi, The following should have been included with the backport for 4.9 in https://gcc.gnu.org/ml/gcc-patches/2014-12/msg01383.html to allow the debuginfo to be read for EM_PPC64. 2014-12-30 Lynn Boger * libgo/go/debug/elf/file.go: Read debug_info for EM_PPC64 Index: libgo/go/debug/elf/file.go =================================================================== --- libgo/go/debug/elf/file.go (revision 218817) +++ libgo/go/debug/elf/file.go (working copy) @@ -681,7 +681,7 @@ func (f *File) DWARF() (*dwarf.Data, error) { // If there's a relocation table for .debug_info, we have to process it // now otherwise the data in .debug_info is invalid for x86-64 objects. rela := f.Section(".rela.debug_info") - if rela != nil && rela.Type == SHT_RELA && (f.Machine == EM_X86_64 || f.Machine == EM_AARCH64) { + if rela != nil && rela.Type == SHT_RELA && (f.Machine == EM_X86_64 || f.Machine == EM_AARCH64 || f.Machine == EM_PPC64) { data, err := rela.Data() if err != nil { return nil, err