Skip to content

Linux ARM64: check every shipped binary loads on 16 KB-page kernels (Asahi) - #15

Merged
HMAKT99 merged 1 commit into
mainfrom
arm64-page-size
Nov 19, 2026
Merged

HMAKT99 merged 1 commit into
mainfrom
arm64-page-size

Conversation

@HMAKT99

@HMAKT99 HMAKT99 commented Nov 19, 2026

Copy link
Copy Markdown
Owner

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.py reads each ELF's program headers in pure Python (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.

Already checked by hand on v0.1.10

  • agasthy-cli-linux-aarch64: aligned to 64 KB.
  • agasthy-desktop from the arm64 .deb: aligned to 64 KB.
  • The AppImage's runtime and bundled libraries can't be unpacked on macOS, so this PR's Release check is the first time they're checked.

AGASTHY doesn't use jemalloc or another custom allocator, the other common cause of 16 KB failures.

🤖 Generated with Claude Code

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>
@HMAKT99
HMAKT99 merged commit 59f0a66 into main Nov 19, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant