Skip to content

Enable BOLT on aarch64-unknown-linux-gnu#1191

Draft
jjhelmus wants to merge 2 commits into
mainfrom
jjh/aarch64_bolt
Draft

Enable BOLT on aarch64-unknown-linux-gnu#1191
jjhelmus wants to merge 2 commits into
mainfrom
jjh/aarch64_bolt

Conversation

@jjhelmus

@jjhelmus jjhelmus commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Enable BOLT optimization during CPython build on the aarch64-unknown-linux-gnu platform.

To avoid llvm/llvm-project#146541 the _ctypes extension is built as a shared module, causing the libffi trampoline code to exists in the extension rather than the python binary.

An alternative is to disable these static trampolines using --disable-exec-static-tramp when building libffi but this requires writable and executable memory segments which comes with security risks.

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