don't link mmap region into .text but aot array itself

This commit is contained in:
2026-04-21 14:46:31 +02:00
parent ea56079c09
commit 264795bf71
6 changed files with 18 additions and 13 deletions

View File

@ -32,6 +32,9 @@ my $cui = TUI::init_cui();
# TODO: Add a TextEditor panel below the markers for notes.
# Store notes in ./notes/benchmark-type-address.txt
# TODO: Add a more exhaustive faults query that also retrieves
# what fault has been injected. Then add an info popup or
# display it in the markers panel
# =============================================================================
# Data handling

View File

@ -139,7 +139,13 @@ my %handlers = (
"$local_archive_dir/$selected_experiment/system.elf" );
},
'13. Run Build in GDB' => sub {
'13. Open Experiment in ResultBrowser' => sub {
# TODO: Select from existing DBs, rewrite db.conf,
# launch resultbrowser + firefox
},
'14. Run Build in GDB' => sub {
my @builds = grep { /linux/ } Util::find_subdirs($local_builds_dir);
my @selected_builds =
TUI::select_from_list( "Select Build to Run", 0, @builds );

View File

@ -206,8 +206,7 @@ sub inject {
"-Wf,--state-dir=$remote_builds_dir/$experiment/state",
"-Wf,--trap",
"-Wf,--catch-outerspace",
# "-Wf,--catch-write-textsegment",
"-Wf,--catch-write-textsegment",
"-Wf,--timeout=500000",
"-Wf,--ok-marker=fail_marker_positive",
"-Wf,--fail-marker=fail_marker_negative",

View File

@ -97,6 +97,9 @@ build-wasm-aot module target="fail":
build-wasm-aot-array module:
{{ XXD }} -i {{ BUILD_DIR }}-{{ module }}/wasm_module.aot > {{ BUILD_DIR }}-{{ module }}/wasm_aot_array.c
# Add __attribute__((section...)) to this array, so it is located into the .text.wamr_aot segment...
sed -i '1s/^/__attribute__((section(".text.wamr_aot"), aligned(4096)))\n/' {{ BUILD_DIR }}-{{ module }}/wasm_aot_array.c
[doc("WASM -> C-Array: Dump a WASM module to a binary array")]
[group("1: build module")]
build-wasm-interp-array module: