Has anyone been able to create a hybrid of PE COFF and ELF?

前端 未结 3 1066
后悔当初
后悔当初 2020-12-08 17:01

I mean could a single binary file run in both Win32 and Linux i386 ?

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 17:58

    The two formats are sufficiently different that a hybrid is unlikely.

    However, Linux supports loading different executable formats by "interpreter". This way compiled .exe files containing CIL (compiled C# or other .NET languages) can be executed directly under Linux, for example.

提交回复
热议问题