1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 18:13:49 +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=__heap_base \
--export=__data_end \ --export=__data_end \
--allow-undefined \ --allow-undefined \
--no-entry \
--strip-all \ --strip-all \
--export-dynamic \ --export-dynamic \
-error-limit=0 \ -error-limit=0 \
@ -53,6 +52,8 @@ LINK_FLAGS := -z stack-size=4096 \
-O3 \ -O3 \
--gc-sections\ --gc-sections\
--initial-memory=65536 \ --initial-memory=65536 \
--no-entry \
#
# --initial-memory may only be set in 64kB steps (pagesize of WASM) # --initial-memory may only be set in 64kB steps (pagesize of WASM)
# even though this one page is 64kB # even though this one page is 64kB