Skip to content

Fix ARM64 trampoline allocation for B/BL relocation#25

Merged
MBurchard merged 1 commit intomainfrom
fix-arm64-trampoline-alloc
Mar 27, 2026
Merged

Fix ARM64 trampoline allocation for B/BL relocation#25
MBurchard merged 1 commit intomainfrom
fix-arm64-trampoline-alloc

Conversation

@MBurchard
Copy link
Copy Markdown
Owner

  • Use alloc_near() instead of alloc_executable() in the aarch64 install path so trampolines are allocated within ±1GB of the hook target. Plain mmap can place memory >128MB away, causing B/BL relocation overflow on PlayerPrefs hooks.
  • Update dead_code annotations to match the new usage pattern

- Use alloc_near() instead of alloc_executable() in the aarch64 install path so trampolines are
  allocated within ±1GB of the hook target. Plain mmap can place memory >128MB away, causing
  B/BL relocation overflow on PlayerPrefs hooks.
- Update dead_code annotations to match the new usage pattern
@MBurchard MBurchard merged commit 9950f5b into main Mar 27, 2026
1 check passed
@MBurchard MBurchard deleted the fix-arm64-trampoline-alloc branch March 27, 2026 20:37
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