From a2cb050ca18fd7c5533d69e9aa093e4f0a40d0fa Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 8 Apr 2026 16:04:12 +0200 Subject: Implement the asan:stack statement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This statement allows programmers to reserve a memory range for the stack. This is useful to reserve a memory region which is not attached to any variable, and: 1. It is a way to safely reserve space on the $0100 page. 2. The --stats/--write-info flags will be able to add up the memory space reserved for the stack. 3. Future tooling might be able to use this value as a way to detect stack overflows. Signed-off-by: Miquel Sabaté Solà --- tests/variable_names.s | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/variable_names.s') diff --git a/tests/variable_names.s b/tests/variable_names.s index beda2b8..a1dc578 100644 --- a/tests/variable_names.s +++ b/tests/variable_names.s @@ -36,3 +36,5 @@ lda wr_out .endmacro INC_MOVEMENT_X zp_good + 1 + +;;; asan:stack full -- cgit v1.2.3