Skip to content

Commit

Permalink
Enable Shadow Call Stack for Fuchsia on AArch64
Browse files Browse the repository at this point in the history
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
ilovepi committed Jan 6, 2023
1 parent 7bbbaab commit c5bde06
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 c5bde06

Please sign in to comment.