1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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)
This commit is contained in:
Marian Buschsieweke 2022-11-09 20:10:46 +01:00
parent e402e3f57a
commit c801990c5d
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -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