From c801990c5d50046395e6cc4df2f07669e10b0e63 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Wed, 9 Nov 2022 20:10:46 +0100 Subject: [PATCH] examples/wasm/wasm_sample: fix linking with new wasm-ld Apparently the order of the flags now became significant. This fixes: wasm-ld: error: entry symbol not defined (pass --no-entry to suppress) --- examples/wasm/wasm_sample/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/wasm/wasm_sample/Makefile b/examples/wasm/wasm_sample/Makefile index 824a594987..dec2b46e4e 100644 --- a/examples/wasm/wasm_sample/Makefile +++ b/examples/wasm/wasm_sample/Makefile @@ -45,7 +45,6 @@ LINK_FLAGS := -z stack-size=4096 \ --export=__heap_base \ --export=__data_end \ --allow-undefined \ - --no-entry \ --strip-all \ --export-dynamic \ -error-limit=0 \ @@ -53,6 +52,8 @@ LINK_FLAGS := -z stack-size=4096 \ -O3 \ --gc-sections\ --initial-memory=65536 \ + --no-entry \ + # # --initial-memory may only be set in 64kB steps (pagesize of WASM) # even though this one page is 64kB