jbevain / cecil

Cecil is a library to inspect, modify and create .NET programs and libraries.
MIT License
2.77k stars 630 forks source link

Support for Linux and MacOS target architectures #797

Open Droppers opened 3 years ago

Droppers commented 3 years ago

The Linux and MacOS machine types differ from the Windows machine types for (some) .NET Core runtime libraries.

For example System.Runtime.dll's machine type for AMD64 is 0xFD1D, which is the is the equivalent of the Windows type (0x8664) xorred with 0x7B79 for Linux and 0x4644 for MacOS.

See: https://github.com/dotnet/runtime/issues/36364