Skip to content

Commit

Permalink
Fix singlefile on OSX ARM64 (#68845) (#69930)
Browse files Browse the repository at this point in the history
* Same alignment in the bundle on OSX as on Linux

* Extra VA gap between section in casse we run from sf bundle

* Rename prevSectionEnd -> prevSectionEndAligned and make it aligned.

* Suppress assert for now on OSX
  • Loading branch information
VSadov authored Jun 9, 2022
1 parent 90fcb77 commit a79d7c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public TargetInfo(OSPlatform? os, Architecture? arch, Version targetFrameworkVer
throw new ArgumentException($"Invalid input: Unsupported Target Framework Version {targetFrameworkVersion}");
}

if (IsLinux && Arch == Architecture.Arm64)
if (Arch == Architecture.Arm64)
{
// We align assemblies in the bundle at 4K so that we can use mmap on Linux without changing the page alignment of ARM64 R2R code.
// This is only necessary for R2R assemblies, but we do it for all assemblies for simplicity.
Expand Down

0 comments on commit a79d7c4

Please sign in to comment.