From 31e76ca3b6b2d6f8ad3ba3742b1ae1d6704bfd2d Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 13 Feb 2022 11:35:00 +0800 Subject: [PATCH] nac3standalone: add dummy support for artiq_personality So existing tests can run again --- nac3standalone/demo/demo.rs | 5 +++++ nac3standalone/demo/run_demo.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nac3standalone/demo/demo.rs b/nac3standalone/demo/demo.rs index ab209494e..37ce8c647 100644 --- a/nac3standalone/demo/demo.rs +++ b/nac3standalone/demo/demo.rs @@ -53,6 +53,11 @@ pub extern "C" fn output_int32_list(x: &cslice::CSlice) { println!("]"); } +#[no_mangle] +pub extern "C" fn __artiq_personality(_state: u32, _exception_object: u32, _context: u32) -> u32 { + unimplemented!(); +} + extern "C" { fn run() -> i32; diff --git a/nac3standalone/demo/run_demo.sh b/nac3standalone/demo/run_demo.sh index e57ca0197..7734b2491 100755 --- a/nac3standalone/demo/run_demo.sh +++ b/nac3standalone/demo/run_demo.sh @@ -16,5 +16,5 @@ fi rm -f *.o $nac3standalone $1 -rustc -o demo demo.rs -Clink-arg=./module.o +rustc -o demo demo.rs -Crelocation-model=static -Clink-arg=./module.o ./demo