From patchwork Fri Jan 19 04:27:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 863297 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-471629-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="wY6HIWS9"; dkim-atps=neutral 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 3zN79P49qcz9sNr for ; Fri, 19 Jan 2018 15:28:08 +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 :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=QJsw8wFHANs+7y14WHcceWyuPaIBEk80RxXSCsU4jH874n dq/bTEPPcospNV2M8020LuMHjSBPTjzI+LAmigcV84ZEfwmYw0PhlLVKgtc1VWwE mM06BAcyPbgY3KA+aihnTMEP6RtmCkIjcKohbeTLiBuQnV3DbuXy8qc+ZbR9w= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=WhcJ7pK0NUGynuXnDX5v0jcITSI=; b=wY6HIWS9y+tyKefeTG+V J+g2aeKot4TWATW2xTFq6PGtQcHkVaJZWdGDDifr6h7LZhh1pHyUxGeRMw8yv3bD LjN+xOYx2vBJCNyIwflGYUsmbJ6c/l4E2wzFs/ZiRVpkc73RPLSc/v/Yh+jypMwi BlWeetCzdTHyDAJV/PrQfwA= Received: (qmail 46392 invoked by alias); 19 Jan 2018 04:27:59 -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 46381 invoked by uid 89); 19 Jan 2018 04:27:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wm0-f52.google.com Received: from mail-wm0-f52.google.com (HELO mail-wm0-f52.google.com) (74.125.82.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Jan 2018 04:27:57 +0000 Received: by mail-wm0-f52.google.com with SMTP id x4so5475872wmc.0 for ; Thu, 18 Jan 2018 20:27:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EI4NB9WzEshBlRguanQzvLNn2awdMvu5f6pRUk4HCtw=; b=hXSoZprDOKjbSaRV8DzDK4TmsHDxJfBUy/iGiQI4rB+1tH4vzYRP6mModxmzHQhAYt cvmm4up+w+5axtyjgUullwkfMxnJcx9Tj8/IPdrhgrUvj6VX5+NvsjxtUjrxb9ndwIAp rh80X+gQ2x5xazIt097at8RPeElP0B2prztRRg5zKqFRyN9ZKKXMWPQb/q1eL1M9NRVs Qp8V1a+dosWHoje/iNnIhSjDpgHiHdFEHEB9ksdPJysS5AWIBkLiycLokFCIDbC+Issi 560cDwI0Y2lUxiWm6IWOrCSOYZIl62BF7UockdGO9nQPjJJ7nhfoDljfsvTlKqZZMGXP 87iw== X-Gm-Message-State: AKwxytet0qPeSm+FXfY4vCmTb9KvUojJlIS89GKvBsQ8BA6ILOLiXvS+ TclgPqq9aQ6Gsq8sEeHUoOZo/JAI8B/+grwvcPk85g== X-Google-Smtp-Source: ACJfBovC+uwpZryW0cjtD6QouPa7sN2lwfEvy0ofn8IZYfWUSPboH2Q3sxZu7iwTxVUdrJ3Pd3SrfyisXOYzYI6Drsk= X-Received: by 10.80.132.5 with SMTP id 5mr11088809edp.208.1516336075533; Thu, 18 Jan 2018 20:27:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.179.219 with HTTP; Thu, 18 Jan 2018 20:27:54 -0800 (PST) From: Ian Lance Taylor Date: Thu, 18 Jan 2018 20:27:54 -0800 Message-ID: Subject: libgo patch commited: Recognize AIX objects and archives To: gcc-patches , gofrontend-dev@googlegroups.com This patch by Tony Reix adds code to the go tool to recognize AIX objects and archives. Bootstrapped on x86_64-pc-linux-gnu. Committed to mainline. Ian Index: gcc/go/gofrontend/MERGE =================================================================== --- gcc/go/gofrontend/MERGE (revision 256872) +++ gcc/go/gofrontend/MERGE (working copy) @@ -1,4 +1,4 @@ -6b4f1391e2cd637fa5ed797bb3ab43d9ede61997 +cf33aedb66b5121708f5640443c1336080a47fe5 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. Index: libgo/go/cmd/go/internal/work/exec.go =================================================================== --- libgo/go/cmd/go/internal/work/exec.go (revision 256794) +++ libgo/go/cmd/go/internal/work/exec.go (working copy) @@ -1282,6 +1282,7 @@ func (b *Builder) cover(a *Action, dst, var objectMagic = [][]byte{ {'!', '<', 'a', 'r', 'c', 'h', '>', '\n'}, // Package archive + {'<', 'b', 'i', 'g', 'a', 'f', '>', '\n'}, // Package AIX big archive {'\x7F', 'E', 'L', 'F'}, // ELF {0xFE, 0xED, 0xFA, 0xCE}, // Mach-O big-endian 32-bit {0xFE, 0xED, 0xFA, 0xCF}, // Mach-O big-endian 64-bit @@ -1291,6 +1292,8 @@ var objectMagic = [][]byte{ {0x00, 0x00, 0x01, 0xEB}, // Plan 9 i386 {0x00, 0x00, 0x8a, 0x97}, // Plan 9 amd64 {0x00, 0x00, 0x06, 0x47}, // Plan 9 arm + {0x01, 0xDF}, // XCOFF32 + {0x01, 0xF7}, // XCOFF64 } func isObject(s string) bool {