Re:How small is the smallest .NET Hello World binary?
by why_only_15 on Sunday July 09, 2023 @06:57AM
(#36653425)
On MacOS at least all binaries are dynamic (except dyld itself) so I think this is fair. This is because everything is supposed to link I believe some kind of runtime dylib instead of doing e.g. syscalls. This includes anything written in C, for example. Size of binary with dynamic links is the most fair comparison between anything running not on Linux.
[ Parent
| on HN ]
Re:How small is the smallest .NET Hello World binary?
by grishka on Sunday July 09, 2023 @07:57AM
(#36653747)
According to Apple you are supposed to link to libSystem.dylib for syscalls, but there's obviously nothing stopping you from calling into the kernel directly.
Re:How small is the smallest .NET Hello World binary?
by msla on Sunday July 09, 2023 @09:01AM
(#36654135)
> According to Apple you are supposed to link to libSystem.dylib for syscalls, but there's obviously nothing stopping you from calling into the kernel directly.
As a matter of OS design, this is no longer obvious:
https://lwn.net/Articles/806776/
> A new mechanism to help thwart return-oriented programming (ROP) and similar attacks has recently been added to the OpenBSD kernel. It will block system calls that are not made via the C library (libc) system-call wrappers.
MacOS doesn't implement that, sure, but it could.