diff options
author | Cherry Zhang <cherryyz@google.com> | 2021-04-23 19:02:44 -0400 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2021-04-26 15:52:34 +0000 |
commit | 1f7ddf57d2908319c0ca7dc621a206935d8726f2 (patch) | |
tree | b0d4faf98fbfb5c2cff2e36b1cb1e70786b647a6 /src/cmd/dist | |
parent | 00d42ffc895be17db72f195c1cf8f23be141a6fc (diff) | |
download | go-1f7ddf57d2908319c0ca7dc621a206935d8726f2.tar.gz go-1f7ddf57d2908319c0ca7dc621a206935d8726f2.zip |
syscall, etc.: use abi.FuncPCABI0 for libc syscall wrappers
In CL 288092 we made Darwin syscall wrappers as ABIInternal, so
their addresses taken from Go using funcPC are the actual function
entries, not the wrappers.
As we introduced internal/abi.FuncPCABIxxx intrinsics, use that.
And change the assembly functions back to ABI0.
Do it on OpenBSD as well, as OpenBSD and Darwin share code
generator.
Change-Id: I408120795f7fc826637c867394248f8f373906bd
Reviewed-on: https://go-review.googlesource.com/c/go/+/313230
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/cmd/dist')
-rw-r--r-- | src/cmd/dist/build.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go index 28c814d316..c81fe6a586 100644 --- a/src/cmd/dist/build.go +++ b/src/cmd/dist/build.go @@ -1776,8 +1776,6 @@ func IsRuntimePackagePath(pkgpath string) bool { rval = true case "syscall": rval = true - case "crypto/x509/internal/macos": // libc function wrappers need to be ABIInternal - rval = true case "internal/bytealg": rval = true default: |