From 6f58e4ab8d90166cac4e4da269a77c5134f12f1e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 9 Jul 2026 22:07:47 +0200 Subject: Add support for the asan:fixed-segments comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This magic comment allows for the definition of segments that are fixed and for which references are always safe. This goes in tandem with the asan:safe comment, which can then be used more sporadically. Signed-off-by: Miquel Sabaté Solà --- scripts/test-e2e.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/test-e2e.sh') diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index 43572b0..2a72d38 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -133,6 +133,13 @@ exit_code=$((exit_code + $?)) diff tests/out/unrom.nes tests/expected/unrom.nes exit_code=$((exit_code + $?)) +echo "test: custom => fixed-segments.nes" +./target/debug/nasm -c unrom tests/fixed-segments.s -o tests/out/fixed-segments.nes 2>tests/out/fixed-segments.txt +diff tests/out/fixed-segments.txt tests/expected/fixed-segments.txt +exit_code=$((exit_code + $?)) +diff tests/out/fixed-segments.nes tests/expected/fixed-segments.nes +exit_code=$((exit_code + $?)) + ## # code.nes -- cgit v1.2.3