Skip to content

Commit

Permalink
Enable kernel sanitizers for aarch64-unknown-none-softfloat
Browse files Browse the repository at this point in the history
We want kernels to be able to use this bare metal target, so
let's enable the sanitizers that kernels want to use.
  • Loading branch information
workingjubilee committed Jan 22, 2025
1 parent dee7d0e commit 6b06aa6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
// For example, `-C target-cpu=cortex-a53`.

use crate::spec::{
Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, StackProbeType, Target, TargetOptions,
Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, SanitizerSet, StackProbeType, Target,
TargetOptions,
};

pub(crate) fn target() -> Target {
Expand All @@ -19,6 +20,7 @@ pub(crate) fn target() -> Target {
relocation_model: RelocModel::Static,
disable_redzone: true,
max_atomic_width: Some(128),
supported_sanitizers: SanitizerSet::KCFI | SanitizerSet::KERNELADDRESS,
stack_probes: StackProbeType::Inline,
panic_strategy: PanicStrategy::Abort,
..Default::default()
Expand Down

0 comments on commit 6b06aa6

Please sign in to comment.