about summary refs log tree commit diff
path: root/compiler/rustc_target/src
diff options
context:
space:
mode:
authorfee1-dead <ent3rm4n@gmail.com>2023-01-09 23:35:28 +0800
committerGitHub <noreply@github.com>2023-01-09 23:35:28 +0800
commitfd75cfef669fce0f2580abd0a4cefb72ed6f2f02 (patch)
treee03f6bf36d9d7234aaba97775fe8319375504db3 /compiler/rustc_target/src
parent63f2a13855a4b81989f43e8001c1a0ea64c0090f (diff)
parentc5bde0699fb69ba507fa1d0f5642e2407654f5e3 (diff)
downloadrust-fd75cfef669fce0f2580abd0a4cefb72ed6f2f02.tar.gz
rust-fd75cfef669fce0f2580abd0a4cefb72ed6f2f02.zip
Rollup merge of #106061 - ilovepi:fuchsia-scs, r=oli-obk
Enable Shadow Call Stack for Fuchsia on AArch64

Fuchsia already uses SCS by default for C/C++ code on ARM hardware. This patch allows SCS to be used for Rust code as well.
Diffstat (limited to 'compiler/rustc_target/src')
-rw-r--r--compiler/rustc_target/src/spec/aarch64_unknown_fuchsia.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/aarch64_unknown_fuchsia.rs b/compiler/rustc_target/src/spec/aarch64_unknown_fuchsia.rs
index da493f0c260..ef2ab304f9e 100644
--- a/compiler/rustc_target/src/spec/aarch64_unknown_fuchsia.rs
+++ b/compiler/rustc_target/src/spec/aarch64_unknown_fuchsia.rs
@@ -8,7 +8,9 @@ pub fn target() -> Target {
         arch: "aarch64".into(),
         options: TargetOptions {
             max_atomic_width: Some(128),
-            supported_sanitizers: SanitizerSet::ADDRESS | SanitizerSet::CFI,
+            supported_sanitizers: SanitizerSet::ADDRESS
+                | SanitizerSet::CFI
+                | SanitizerSet::SHADOWCALLSTACK,
             ..super::fuchsia_base::opts()
         },
     }