]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/objfile: recognize Windows ARM64 executables
authorRuss Cox <rsc@golang.org>
Fri, 22 Jan 2021 14:23:49 +0000 (09:23 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 19 Feb 2021 00:40:05 +0000 (00:40 +0000)
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 <rsc@golang.org>
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/cmd/internal/objfile/pe.go

index b20cda9a44be994e4e225eccf2c205a65c77a187..9088866fcf5326f9b84757bf72aa582acbc77096 100644 (file)
@@ -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 ""
        }