dotnet / runtime

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

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

Open mdh1418 opened 11 months ago

mdh1418 commented 11 months 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 11 months ago

/cc: @akoeplinger @steveisok @lambdageek @vargaz