summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rust/config/arm64_device.go7
1 files changed, 6 insertions, 1 deletions
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",
},