Skip to content

Commit

Permalink
Rollup merge of rust-lang#106061 - ilovepi:fuchsia-scs, r=oli-obk
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Yuki Okushi authored Jan 9, 2023
2 parents 3cc24ec + c5bde06 commit 78cff46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/rustc_target/src/spec/aarch64_unknown_fuchsia.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
},
}
Expand Down

0 comments on commit 78cff46

Please sign in to comment.