Skip to content

Commit

Permalink
cmd/internal/objfile: recognize Windows ARM64 executables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rsc committed Feb 19, 2021
1 parent 0ca0551 commit 95a44d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cmd/internal/objfile/pe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
}
Expand Down

0 comments on commit 95a44d2

Please sign in to comment.