Skip to content

Commit 0b6cfea

Browse files
committed
doc/go1.16: document that on OpenBSD syscalls are now made through libc
Updates #36435, #40700. Change-Id: I1e2ded111ad58066cc9f2c9d00e719497b0f34d8 Reviewed-on: https://go-review.googlesource.com/c/go/+/287634 Trust: Cherry Zhang <[email protected]> Reviewed-by: Joel Sing <[email protected]>
1 parent 26e29aa commit 0b6cfea

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/go1.16.html

+10
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ <h3 id="openbsd">OpenBSD</h3>
8080
support cgo.
8181
</p>
8282

83+
<p><!-- golang.org/issue/36435, many CLs -->
84+
On the 64-bit x86 and 64-bit ARM architectures on OpenBSD (the
85+
<code>openbsd/amd64</code> and <code>openbsd/arm64</code> ports), system
86+
calls are now made through <code>libc</code>, instead of directly using
87+
the <code>SYSCALL</code>/<code>SVC</code> instruction. This ensures
88+
forward-compatibility with future versions of OpenBSD. In particular,
89+
OpenBSD 6.9 onwards will require system calls to be made through
90+
<code>libc</code> for non-static Go binaries.
91+
</p>
92+
8393
<h3 id="386">386</h3>
8494

8595
<p><!-- golang.org/issue/40255, golang.org/issue/41848, CL 258957, and CL 260017 -->

0 commit comments

Comments
 (0)