https://github.com/python/cpython/commit/e11315d63b9e43d5ec62c996628b12fdd76fcab5
commit: e11315d63b9e43d5ec62c996628b12fdd76fcab5
branch: main
author: Diego Russo <[email protected]>
committer: diegorusso <[email protected]>
date: 2026-04-08T16:34:04+01:00
summary:
GH-115802: Remove no-plt for Linux AArch64 (#148238)
files:
A
Misc/NEWS.d/next/Core_and_Builtins/2026-04-08-06-59-23.gh-issue-115802.jqfZty.rst
M Tools/jit/_targets.py
diff --git
a/Misc/NEWS.d/next/Core_and_Builtins/2026-04-08-06-59-23.gh-issue-115802.jqfZty.rst
b/Misc/NEWS.d/next/Core_and_Builtins/2026-04-08-06-59-23.gh-issue-115802.jqfZty.rst
new file mode 100644
index 00000000000000..13ed51be0e6c5c
--- /dev/null
+++
b/Misc/NEWS.d/next/Core_and_Builtins/2026-04-08-06-59-23.gh-issue-115802.jqfZty.rst
@@ -0,0 +1 @@
+Improve JIT code generation on Linux AArch64 by reducing the indirect call to
external symbols. Patch by Diego Russo.
diff --git a/Tools/jit/_targets.py b/Tools/jit/_targets.py
index 787fcf53260f3d..ea0a9722c3cdf8 100644
--- a/Tools/jit/_targets.py
+++ b/Tools/jit/_targets.py
@@ -594,7 +594,7 @@ def get_target(host: str) -> _COFF32 | _COFF64 | _ELF |
_MachO:
host = "aarch64-unknown-linux-gnu"
condition = "defined(__aarch64__) && defined(__linux__)"
# -mno-outline-atomics: Keep intrinsics from being emitted.
- args = ["-fpic", "-mno-outline-atomics", "-fno-plt"]
+ args = ["-fpic", "-mno-outline-atomics"]
optimizer = _optimizers.OptimizerAArch64
target = _ELF(
host, condition, args=args, optimizer=optimizer,
frame_pointers=True
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]