You don't link all of Libc
(tedunangst.com)
On OpenBSD, there is a rule that you link with libc to interface with the kernel, because that’s where the syscall stubs live.
On OpenBSD, there is a rule that you link with libc to interface with the kernel, because that’s where the syscall stubs live.