logoalt Hacker News

oguz-ismail11/07/20242 repliesview on HN

> It causes issues in eg openbsd where you can only call syscalls from libc

OpenBSD allows making syscalls from static binaries as well. If Go binaries are static, it shouldn't cause any problems.


Replies

kbolino11/07/2024

> OpenBSD allows making syscalls from static binaries as well.

Do you have a source for this? My Google searches and personal recollections say that OpenBSD does not have a stable syscall ABI in the way that Linux does and the proper/supported way to make syscalls on OpenBSD is through dynamically linked libc; statically linking libc, or invoking the syscall mechanism it uses directly, results in binaries that can be broken on future OpenBSD versions.

show 2 replies
tolciho11/07/2024

Go recently got run through the wringer to remove syscalls (and various Go ports are probably still broken) due to pinsyscalls.