Run FreeBSD static binary on Linux?

Will there be a small / simple command line program programmed in C99 standards and statically compiled on FreeBSD if it runs on Linux?

(I would have experienced it myself, but currently I do not have a separate hard drive for testing on Linux.)

+6
c linux compatibility freebsd
source share
1 answer

No, not in general, because the syscall interface is different. However, FreeBSD has a good level of Linux compatibility, where you can run Linux executables (which are compiled against the syscall Linux interface) on FreeBSD. There is such a layer available for both i386 and amd64 binaries.

For more information, see Chapter 10: Linux Binary Compatibility in the FreeBSD Reference.

+10
source share

All Articles