]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add AIX operating system
authorClément Chigot <clement.chigot@atos.net>
Fri, 28 Sep 2018 15:21:57 +0000 (17:21 +0200)
committerIan Lance Taylor <iant@golang.org>
Mon, 22 Oct 2018 21:54:06 +0000 (21:54 +0000)
This commit adds AIX operating system to cmd/go package for ppc64
architecture.

Updates: #25893

Change-Id: I2605d10a7833fa2eb197f6db4a52d5919cf93614
Reviewed-on: https://go-review.googlesource.com/c/138732
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/internal/base/signal_unix.go
src/cmd/go/internal/work/exec.go

index 38490b571bc23011fc67640015d8763c7ecbde04..c109eecadb3321c68382def51980bbb595019e37 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build darwin dragonfly freebsd js linux nacl netbsd openbsd solaris
+// +build aix darwin dragonfly freebsd js linux nacl netbsd openbsd solaris
 
 package base
 
index 158f5f3b173dbdc6c270ff4bb4c0a8b445f06482..6ae263431cc21c5b6a2232f113d532f6e36733e7 100644 (file)
@@ -1648,6 +1648,7 @@ func (b *Builder) cover(a *Action, dst, src string, varName string) error {
 
 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
@@ -1658,6 +1659,8 @@ var objectMagic = [][]byte{
        {0x00, 0x00, 0x8a, 0x97},                  // Plan 9 amd64
        {0x00, 0x00, 0x06, 0x47},                  // Plan 9 arm
        {0x00, 0x61, 0x73, 0x6D},                  // WASM
+       {0x01, 0xDF},                              // XCOFF 32bit
+       {0x01, 0xF7},                              // XCOFF 64bit
 }
 
 func isObject(s string) bool {