Repository navigation
Linux ARM64: check every shipped binary loads on 16 KB-page kernels (Asahi) - #15
Merged
Merged
Conversation
Asahi Linux (Apple silicon Macs, including Omarchy Mac) uses 16 KB pages. An ELF whose LOAD segments are aligned for 4 KB pages cannot be mapped there and fails at start. scripts/check-elf-page-size.py reads each ELF's program headers (no external tools) and fails if any LOAD segment is aligned below 16 KB. The ARM64 release job and the PR release check run it on the AppImage (its runtime and every bundled library), the desktop binary and the CLI. Checked by hand on v0.1.10: the ARM64 CLI and the desktop binary from the .deb are aligned to 64 KB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Asahi Linux (Apple-silicon Macs, including Omarchy Mac) runs 16 KB memory pages. An ARM64 binary whose LOAD segments are aligned for 4 KB pages can't load there. Before asking Omarchy Mac users to test, I want to know whether our ARM64 build is affected.
What
scripts/check-elf-page-size.pyreads each ELF's program headers in pure Python (no external tools) and fails if any LOAD segment is aligned below 16 KB.Already checked by hand on v0.1.10
agasthy-cli-linux-aarch64: aligned to 64 KB.agasthy-desktopfrom the arm64.deb: aligned to 64 KB.AGASTHY doesn't use jemalloc or another custom allocator, the other common cause of 16 KB failures.
🤖 Generated with Claude Code