diff options
| author | Joel Sing <joel@sing.id.au> | 2021-02-05 04:22:18 +1100 |
|---|---|---|
| committer | Joel Sing <joel@sing.id.au> | 2021-05-09 17:07:01 +0000 |
| commit | bedf2c488630bd8253598b78088bc27fc36fbd29 (patch) | |
| tree | 233bab7dec52663ae8e0bf780619b46c6ca3a927 /src/syscall/exec_unix.go | |
| parent | 603f43cbae1f29c9c167b2b331dc31c8486c888b (diff) | |
| download | go-bedf2c488630bd8253598b78088bc27fc36fbd29.tar.xz | |
runtime,syscall: convert syscall on openbsd/arm to libc
Convert the syscall package on openbsd/arm to use libc rather than performing
direct system calls.
Updates #36435
Change-Id: Iff3a91c959292cbf4e0a09c7fd34efc8e88ff83f
Reviewed-on: https://go-review.googlesource.com/c/go/+/315793
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/syscall/exec_unix.go')
| -rw-r--r-- | src/syscall/exec_unix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syscall/exec_unix.go b/src/syscall/exec_unix.go index 206a1e17d6..54b18dccd7 100644 --- a/src/syscall/exec_unix.go +++ b/src/syscall/exec_unix.go @@ -301,7 +301,7 @@ func Exec(argv0 string, argv []string, envv []string) (err error) { } else if runtime.GOOS == "darwin" || runtime.GOOS == "ios" { // Similarly on Darwin. err1 = execveDarwin(argv0p, &argvp[0], &envvp[0]) - } else if runtime.GOOS == "openbsd" && (runtime.GOARCH == "386" || runtime.GOARCH == "amd64" || runtime.GOARCH == "arm64") { + } else if runtime.GOOS == "openbsd" && (runtime.GOARCH == "386" || runtime.GOARCH == "amd64" || runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") { // Similarly on OpenBSD. err1 = execveOpenBSD(argv0p, &argvp[0], &envvp[0]) } else { |
