From 47dd17b87bdc228727cf697c9fd4ca5124a53980 Mon Sep 17 00:00:00 2001 From: zaniebot <242828183+zaniebot@users.noreply.github.com> Date: Wed, 21 Oct 2026 22:52:43 +0000 Subject: [PATCH 1/2] Enable the Cortex-A53 erratum 843419 workaround for AArch64 Linux glibc --- cpython-unix/targets.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/cpython-unix/targets.yml b/cpython-unix/targets.yml index 7d73dbaae..e20586265 100644 --- a/cpython-unix/targets.yml +++ b/cpython-unix/targets.yml @@ -164,6 +164,7 @@ aarch64-unknown-linux-gnu: - '-fdebug-default-version=4' target_ldflags: - '--sysroot=/usr/aarch64-linux-gnu' + - '-Wl,--fix-cortex-a53-843419' # Hardening - '-Wl,-z,noexecstack' - '-Wl,-z,relro' From 3e404f03f1e12d820c3a13c64c3564f3f753f3f7 Mon Sep 17 00:00:00 2001 From: zaniebot <242828183+zaniebot@users.noreply.github.com> Date: Wed, 21 Oct 2026 22:53:32 +0000 Subject: [PATCH 2/2] Explain the Cortex-A53 linker workaround --- cpython-unix/targets.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/cpython-unix/targets.yml b/cpython-unix/targets.yml index e20586265..d0b77f997 100644 --- a/cpython-unix/targets.yml +++ b/cpython-unix/targets.yml @@ -164,6 +164,7 @@ aarch64-unknown-linux-gnu: - '-fdebug-default-version=4' target_ldflags: - '--sysroot=/usr/aarch64-linux-gnu' + # Work around Cortex-A53 erratum 843419 in linked code. - '-Wl,--fix-cortex-a53-843419' # Hardening - '-Wl,-z,noexecstack'