diff options
| author | Paul Kirth <paulkirth@google.com> | 2022-12-22 20:29:31 +0000 |
|---|---|---|
| committer | Paul Kirth <paulkirth@google.com> | 2023-01-06 17:42:20 +0000 |
| commit | c5bde0699fb69ba507fa1d0f5642e2407654f5e3 (patch) | |
| tree | d0d475f8dd6b37f61af2167664f98431789e51f5 /compiler/rustc_target/src/spec | |
| parent | 7bbbaabbb6ec93800409478e2af7bc063701604b (diff) | |
| download | rust-c5bde0699fb69ba507fa1d0f5642e2407654f5e3.tar.gz rust-c5bde0699fb69ba507fa1d0f5642e2407654f5e3.zip | |
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/spec')
| -rw-r--r-- | compiler/rustc_target/src/spec/aarch64_unknown_fuchsia.rs | 4 |
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() }, } |
