This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 45c5d3c143 arm64/toolchains:Add the following kasan compilation options
45c5d3c143 is described below

commit 45c5d3c1435cd61809935e6534a56ea4c660defe
Author: wangmingrong1 <[email protected]>
AuthorDate: Fri Oct 18 21:43:42 2024 +0800

    arm64/toolchains:Add the following kasan compilation options
    
    Signed-off-by: wangmingrong1 <[email protected]>
---
 arch/arm64/src/Toolchain.defs | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/src/Toolchain.defs b/arch/arm64/src/Toolchain.defs
index 1efd0d479c..faf6480b3e 100644
--- a/arch/arm64/src/Toolchain.defs
+++ b/arch/arm64/src/Toolchain.defs
@@ -82,6 +82,14 @@ ifeq ($(CONFIG_MM_KASAN_GLOBAL),y)
   ARCHOPTIMIZATION += --param asan-globals=1
 endif
 
+ifeq ($(CONFIG_MM_KASAN_DISABLE_READS_CHECK),y)
+  ARCHOPTIMIZATION += --param asan-instrument-reads=0
+endif
+
+ifeq ($(CONFIG_MM_KASAN_DISABLE_WRITES_CHECK),y)
+  ARCHOPTIMIZATION += --param asan-instrument-writes=0
+endif
+
 # Instrumentation options
 
 ifeq ($(CONFIG_ARCH_INSTRUMENT_ALL),y)

Reply via email to