Commit 219f9bad by Ian Lance Taylor

cmd/go: recognize AIX objects and archives

    
    Reviewed-on: https://go-review.googlesource.com/88275

From-SVN: r256873
parent 549e4feb
6b4f1391e2cd637fa5ed797bb3ab43d9ede61997 cf33aedb66b5121708f5640443c1336080a47fe5
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -1282,6 +1282,7 @@ func (b *Builder) cover(a *Action, dst, src string, perm os.FileMode, varName st ...@@ -1282,6 +1282,7 @@ func (b *Builder) cover(a *Action, dst, src string, perm os.FileMode, varName st
var objectMagic = [][]byte{ var objectMagic = [][]byte{
{'!', '<', 'a', 'r', 'c', 'h', '>', '\n'}, // Package archive {'!', '<', 'a', 'r', 'c', 'h', '>', '\n'}, // Package archive
{'<', 'b', 'i', 'g', 'a', 'f', '>', '\n'}, // Package AIX big archive
{'\x7F', 'E', 'L', 'F'}, // ELF {'\x7F', 'E', 'L', 'F'}, // ELF
{0xFE, 0xED, 0xFA, 0xCE}, // Mach-O big-endian 32-bit {0xFE, 0xED, 0xFA, 0xCE}, // Mach-O big-endian 32-bit
{0xFE, 0xED, 0xFA, 0xCF}, // Mach-O big-endian 64-bit {0xFE, 0xED, 0xFA, 0xCF}, // Mach-O big-endian 64-bit
...@@ -1291,6 +1292,8 @@ var objectMagic = [][]byte{ ...@@ -1291,6 +1292,8 @@ var objectMagic = [][]byte{
{0x00, 0x00, 0x01, 0xEB}, // Plan 9 i386 {0x00, 0x00, 0x01, 0xEB}, // Plan 9 i386
{0x00, 0x00, 0x8a, 0x97}, // Plan 9 amd64 {0x00, 0x00, 0x8a, 0x97}, // Plan 9 amd64
{0x00, 0x00, 0x06, 0x47}, // Plan 9 arm {0x00, 0x00, 0x06, 0x47}, // Plan 9 arm
{0x01, 0xDF}, // XCOFF32
{0x01, 0xF7}, // XCOFF64
} }
func isObject(s string) bool { func isObject(s string) bool {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment