From 9aa983800461b685f367ece90b4120276a5b39d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kosi=C5=84ski?= Date: Thu, 19 Sep 2024 00:08:16 +0000 Subject: [PATCH] Add ARMv9.2-A support for Rust. Bug: 364383722 Test: presubmit, internal build for relevant device Change-Id: I6e9db98fa2b31349484f83baef612527fbe7c15a --- rust/config/arm64_device.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rust/config/arm64_device.go b/rust/config/arm64_device.go index 9850570c2..94a445700 100644 --- a/rust/config/arm64_device.go +++ b/rust/config/arm64_device.go @@ -35,8 +35,13 @@ var ( }, "armv8-2a": []string{}, "armv8-2a-dotprod": []string{}, + + // branch-protection=bti,pac-ret is equivalent to Clang's mbranch-protection=standard "armv9-a": []string{ - // branch-protection=bti,pac-ret is equivalent to Clang's mbranch-protection=standard + "-Z branch-protection=bti,pac-ret", + "-Z stack-protector=none", + }, + "armv9-2a": []string{ "-Z branch-protection=bti,pac-ret", "-Z stack-protector=none", },