dist: Fix crash running deploy-stub on arm64 with 16 KiB pages
arm64/aarch64 kernels may be configured with 4K, 16K or 64K pages, 16K seems to be most common. The alignment does cause a big waste of space, we may have to revisit the use of mmap, or just mmap the whole executable
This commit is contained in:
parent
2539de14fc
commit
b4e8cf6958
|
|
@ -2057,6 +2057,9 @@ class Freezer:
|
|||
if self.platform.startswith('win'):
|
||||
# We don't use mmap on Windows. Align just for good measure.
|
||||
blob_align = 32
|
||||
elif self.platform.endswith('_aarch64') or self.platform.endswith('_arm64'):
|
||||
# Most arm64 operating systems are configured with 16 KiB pages.
|
||||
blob_align = 16384
|
||||
else:
|
||||
# Align to page size, so that it can be mmapped.
|
||||
blob_align = 4096
|
||||
|
|
|
|||
Loading…
Reference in New Issue