From: Russ Cox Date: Fri, 22 Jan 2021 14:23:49 +0000 (-0500) Subject: cmd/internal/objfile: recognize Windows ARM64 executables X-Git-Tag: go1.17beta1~1497 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=95a44d2409dc9b37cb4722d74a1de9b671f67128;p=gostls13.git cmd/internal/objfile: recognize Windows ARM64 executables This CL is part of a stack adding windows/arm64 support (#36439), intended to land in the Go 1.17 cycle. Change-Id: I5ec459063d394b9f434d1b8b5030960b45061038 Reviewed-on: https://go-review.googlesource.com/c/go/+/288821 Trust: Russ Cox Trust: Jason A. Donenfeld Reviewed-by: Cherry Zhang Reviewed-by: Alex Brainman Reviewed-by: Jason A. Donenfeld --- diff --git a/src/cmd/internal/objfile/pe.go b/src/cmd/internal/objfile/pe.go index b20cda9a44..9088866fcf 100644 --- a/src/cmd/internal/objfile/pe.go +++ b/src/cmd/internal/objfile/pe.go @@ -189,6 +189,8 @@ func (f *peFile) goarch() string { return "amd64" case pe.IMAGE_FILE_MACHINE_ARMNT: return "arm" + case pe.IMAGE_FILE_MACHINE_ARM64: + return "arm64" default: return "" }