dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.29k stars 4.74k forks source link

[mono] Add support to load compressed PE files #90399

Open mdh1418 opened 1 year ago

mdh1418 commented 1 year ago

As discovered in https://github.com/dotnet/runtime/pull/90336, the Mono AOT Compiler does not support leading compressed PE files as it will only check for the leading MZ bytes to determine if an image is valid. This issue starts the discussion of whether or not we should support loading compressed PE files, and if we should, should decompression occur in the managed side or the native side.

mdh1418 commented 1 year ago

/cc: @akoeplinger @steveisok @lambdageek @vargaz