syscall: add export linknames for socketcall on S390X

CL 749981 added export linknames to assembly symbols accessed
externally. socketcall and rawsocketcall on S390X were missed. Add
them.

Fixes #79605.

Change-Id: I8497916e31bdc80a3f7b0084b3267cee9ce525b1
Reviewed-on: https://go-review.googlesource.com/c/go/+/781920
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Cherry Mui <cherryyz@google.com>
This commit is contained in:
Cherry Mui 2026-05-22 11:31:36 -04:00 committed by Gopher Robot
parent cc623858f6
commit fc245b6427
2 changed files with 6 additions and 1 deletions

View file

@ -125,7 +125,7 @@ const (
_SENDMMSG = 20
)
// socketcall and rawsocketcall are accessed via assembly in x/sys/unix.
// socketcall and rawsocketcall are accessed via assembly in x/sys/unix and x/net.
//
//go:linkname socketcall
func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err Errno)

View file

@ -111,7 +111,12 @@ const (
_SENDMMSG = 20
)
// socketcall and rawsocketcall are accessed via assembly in x/net.
//
//go:linkname socketcall
func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err Errno)
//go:linkname rawsocketcall
func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err Errno)
func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {