Skip to content

Commit c5bde06

Browse files
committed
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.
1 parent 7bbbaab commit c5bde06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_target/src/spec/aarch64_unknown_fuchsia.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ pub fn target() -> Target {
88
arch: "aarch64".into(),
99
options: TargetOptions {
1010
max_atomic_width: Some(128),
11-
supported_sanitizers: SanitizerSet::ADDRESS | SanitizerSet::CFI,
11+
supported_sanitizers: SanitizerSet::ADDRESS
12+
| SanitizerSet::CFI
13+
| SanitizerSet::SHADOWCALLSTACK,
1214
..super::fuchsia_base::opts()
1315
},
1416
}

0 commit comments

Comments
 (0)