From 42ebea54e35062a1a998f25e8fe019a5e0205fd9 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 19 Dec 2024 09:59:34 +0100 Subject: Implement the .incbin control statement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also forced us to add the current working directory to the `Assembler::assemble` public function, as otherwise this control statement and others wouldn't know how to resolve relative paths. Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/xixanta/fuzz') diff --git a/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs b/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs index 111bae9..db33241 100644 --- a/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs +++ b/lib/xixanta/fuzz/fuzz_targets/fuzz_target_assembler.rs @@ -6,5 +6,5 @@ use xixanta::mapping::EMPTY; fuzz_target!(|data: &[u8]| { let mut asm = Assembler::new(EMPTY.to_vec()); - let _ = asm.assemble(data); + let _ = asm.assemble(std::env::current_dir().unwrap().to_path_buf(), data); }); -- cgit v1.2.3