From 0cb9d74d0f1a445529329b8f503e676899e09751 Mon Sep 17 00:00:00 2001 From: Arpan Kapoor Date: Wed, 10 Jun 2026 20:02:47 +0530 Subject: [PATCH] fix: filter unsupported AArch64 Cortex-A53 linker arg --- src/zig.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/zig.rs b/src/zig.rs index 2a5710c..ddc1985 100644 --- a/src/zig.rs +++ b/src/zig.rs @@ -537,6 +537,8 @@ fn filter_linker_arg( } } else if arg == "-Wl,--no-undefined-version" || arg == "-Wl,-znostart-stop-gc" + // See https://github.com/rust-lang/rust/pull/155453 + || arg == "-Wl,--fix-cortex-a53-843419" || arg.starts_with("-Wl,-plugin-opt") { return FilteredArg::Skip; @@ -2380,6 +2382,7 @@ mod tests { let removed: &[&str] = &[ "-Wl,--no-undefined-version", "-Wl,-znostart-stop-gc", + "-Wl,--fix-cortex-a53-843419", "-Wl,-plugin-opt=O2", ]; for arg in removed {