]> Cypherpunks repositories - gostls13.git/commit
syscall: remove references to SYS_syscall on openbsd
authorJoel Sing <joel@sing.id.au>
Sun, 19 Nov 2023 03:50:52 +0000 (14:50 +1100)
committerJoel Sing <joel@sing.id.au>
Sat, 4 May 2024 07:51:20 +0000 (07:51 +0000)
commit20130cc36a17ba131b80cc8674f1ef8d002e9dbe
tree20747d185f4240e6b04ee90cf43e9fd52feb705c
parent8841f50d98b224ecf5ee27d9b7e6f18ad2c98e46
syscall: remove references to SYS_syscall on openbsd

OpenBSD 7.5 no longer has a syscall symbol in libc. This will
typically result in external linking failures since the syscall
package still has a reference to an undefined `syscall' symbol.
Remove these references and return ENOSYS if syscall.Syscall* or
syscall.RawSyscall* are used for a system call number that does not
currently have an internal remapping.

Fixes #63900

Change-Id: Ic757bf8872ad98a92dd5b34cf58312c32fbc9a96
Reviewed-on: https://go-review.googlesource.com/c/go/+/582257
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
13 files changed:
src/syscall/syscall_openbsd_libc.go
src/syscall/zsyscall_openbsd_386.go
src/syscall/zsyscall_openbsd_386.s
src/syscall/zsyscall_openbsd_amd64.go
src/syscall/zsyscall_openbsd_amd64.s
src/syscall/zsyscall_openbsd_arm.go
src/syscall/zsyscall_openbsd_arm.s
src/syscall/zsyscall_openbsd_arm64.go
src/syscall/zsyscall_openbsd_arm64.s
src/syscall/zsyscall_openbsd_ppc64.go
src/syscall/zsyscall_openbsd_ppc64.s
src/syscall/zsyscall_openbsd_riscv64.go
src/syscall/zsyscall_openbsd_riscv64.s