From 8e7993a63e32981757c4d65fe6519439dde97d8e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 2 Sep 2025 16:40:38 +0200 Subject: assembler: Add support for asan:reserve,ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the initial support for both directives for the address sanitizer. Note that asan:weak has been moved into asan:ignore, which is not exactly the same but for now it should suffice. Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/node.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/xixanta/src/node.rs') diff --git a/lib/xixanta/src/node.rs b/lib/xixanta/src/node.rs index 4281c4a..7cfc107 100644 --- a/lib/xixanta/src/node.rs +++ b/lib/xixanta/src/node.rs @@ -252,7 +252,7 @@ pub enum OperationType { #[derive(Debug, Clone, PartialEq)] pub enum CommentType { AsanReserve(u8), - AsanWeak, + AsanIgnore, } /// The PNode type. @@ -349,7 +349,7 @@ impl fmt::Display for NodeType { }, NodeType::Comment(ct) => match ct { CommentType::AsanReserve(_) => write!(f, ";; asan:reserve"), - CommentType::AsanWeak => write!(f, ";; asan:weak"), + CommentType::AsanIgnore => write!(f, ";; asan:ignore"), }, } } -- cgit v1.2.3