Re: [PATCH] libgo: Use stub syscall on GNU/Hurd

2024-10-30 Thread Ian Lance Taylor
On Tue, Oct 29, 2024 at 2:04 PM Samuel Thibault wrote: > > * libgo/go/syscall/syscall_funcs.go: Do not build on GNU/Hurd. > * libgo/go/syscall/syscall_funcs_stubs.go: Build on GNU/Hurd. > * libgo/runtime/go-nosys.c: Do not produce syscall() stub on > GNU/Hurd. > T

[PATCH] libgo: Use stub syscall on GNU/Hurd

2024-10-29 Thread Samuel Thibault
GNU/Hurd does not actually have syscall(), it just has a stub that always return ENOSYS, and defines __stub_syscall. It does however expose a declaration for it: extern long int syscall (long int __sysno, ...) __THROW; that conflicts with the stub that libgo produces int syscall(int numbe