[release/7.0] Fixing compressed singlefile scenario on osx-arm64#80283
[release/7.0] Fixing compressed singlefile scenario on osx-arm64#80283carlossanlop merged 5 commits intorelease/7.0from
Conversation
|
Tagging subscribers to this area: @agocke, @vitek-karas, @VSadov Issue DetailsBackport of #79894 to release/7.0 /cc @VSadov Customer ImpactTestingRiskIMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.
|
jeffschwMSFT
left a comment
There was a problem hiding this comment.
approved. we will take for consideration in 7.0.x
|
Approved by Tactics (7.0.3). |
|
The Mono crossaot leg seems to be stuck. I'll merge the PR. |
Backport of #79894 to release/7.0
/cc @VSadov
Customer Impact
When a user creates an app that uses both singlefile and compression and targets osx-arm64, the app cannot run.
Testing
Manual testing of the scenario. Also ran related tests, which this change fixes as well.
Risk
Low. This is a small change.
The root cause was not setting
MEM_RESERVE_EXECUTABLEflag for the memory allocated to decompress R2R assemblies.Since this is on osx-arm64 we need to play by the W^X rules. It is not possible to make writeable memory executable later on osx-arm64, if it does not have this flag when allocated.