Enable kernel sanitizers for aarch64-unknown-none-softfloat · rust-lang/rust@6b06aa6 (original) (raw)

`@@ -7,7 +7,8 @@

`

7

7

`` // For example, -C target-cpu=cortex-a53.

``

8

8

``

9

9

`use crate::spec::{

`

10

``

`-

Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, StackProbeType, Target, TargetOptions,

`

``

10

`+

Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, SanitizerSet, StackProbeType, Target,

`

``

11

`+

TargetOptions,

`

11

12

`};

`

12

13

``

13

14

`pub(crate) fn target() -> Target {

`

`@@ -19,6 +20,7 @@ pub(crate) fn target() -> Target {

`

19

20

`relocation_model: RelocModel::Static,

`

20

21

`disable_redzone: true,

`

21

22

`max_atomic_width: Some(128),

`

``

23

`+

supported_sanitizers: SanitizerSet::KCFI | SanitizerSet::KERNELADDRESS,

`

22

24

`stack_probes: StackProbeType::Inline,

`

23

25

`panic_strategy: PanicStrategy::Abort,

`

24

26

` ..Default::default()

`