3

I want to know, if I can use the binary of a program without modification on the three systems? After all they are all Unices. I talk about the same architecture.

5

No, you cannot, as the ABIs differ. Some BSDs do have binary compability with Linux binaries, with some caveats (enabling virtual 8086 mode is a common issue). Often you may need to patch the source, however, as many binaries will make assumptions about their environment based on the fact that the source is developed for Linux. As far as I am aware there is no BSD-binary compatibility in the Linux kernel at this time.

Andrey Sokolov is working on providing Linux binary support on Illumos without zones, but as far as I am aware there is no BSD-binary compability on Illumos that is planned at this time.

2
  • Which ABI? As far as I know, most programs don't talk directly with the kernel, but with the libc (is that right?). Isn't it possible to provide a ABI-compatible libc?
    – Mnementh
    Sep 19 '11 at 15:41
  • The ABI depends on the platform the binary is being built for. This article has some good information about binary compatibility which should help you.
    – Chris Down
    Sep 19 '11 at 16:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.