Support custom stack guard size (#1368)

Add a new option WAMR_BUILD_STACK_GUARD_SIZE to set the custom
stack guard size. For most RTOS systems, we use the native stack base
address as the check boundary which may be not safe as POSIX based
systems (like Linux).
This commit is contained in:
Huang Qi
2022-08-12 10:17:11 +08:00
committed by GitHub
parent e23acfab36
commit 88cf1e36c1
5 changed files with 16 additions and 5 deletions

View File

@ -147,6 +147,8 @@ CSRCS += wasm_loader.c
endif
endif
CFLAGS += -DWASM_STACK_GUARD_SIZE=CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE
ifeq ($(CONFIG_INTERPRETERS_WAMR_SHARED_MEMORY),y)
CFLAGS += -DWASM_ENABLE_SHARED_MEMORY=1
CSRCS += wasm_shared_memory.c