Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/iwasm/aot/aot_runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ set_error_buf_v(char *error_buf, uint32 error_buf_size, const char *format, ...)
}
}

static void
aot_unlinked_import_func_trap(void)
{
printf("Unlinked import function called\n");
}

static void *
runtime_malloc(uint64 size, char *error_buf, uint32 error_buf_size)
{
Expand Down Expand Up @@ -1397,6 +1403,7 @@ init_func_ptrs(AOTModuleInstance *module_inst, AOTModule *module,
* Debugging: Check if the import is resolved at link time */
LOG_WARNING("warning: failed to link import function (%s, %s)",
module_name, field_name);
*func_ptrs = (void *)aot_unlinked_import_func_trap;
}
}

Expand Down
Loading