diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-08 16:04:12 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-08 16:04:12 +0200 |
| commit | a2cb050ca18fd7c5533d69e9aa093e4f0a40d0fa (patch) | |
| tree | 9ee9c3c72804c7e78c4dc3e7382f29c669f6da35 /tests/asan_reserve_constant.s | |
| parent | abaffa61df7db8522d29869f7c455c59b8e96dbc (diff) | |
| download | tools.nes-a2cb050ca18fd7c5533d69e9aa093e4f0a40d0fa.tar.gz tools.nes-a2cb050ca18fd7c5533d69e9aa093e4f0a40d0fa.zip | |
Implement the asan:stack statement
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à <mssola@mssola.com>
Diffstat (limited to 'tests/asan_reserve_constant.s')
| -rw-r--r-- | tests/asan_reserve_constant.s | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/asan_reserve_constant.s b/tests/asan_reserve_constant.s index 8af9cad..49f461b 100644 --- a/tests/asan_reserve_constant.s +++ b/tests/asan_reserve_constant.s @@ -18,3 +18,5 @@ lda zp_var lda zp_another lda zp_yet_another lda zp_and_yet + +;;; asan:stack full |
