[PATCH] D40559: Run Wasm entrypoint on load

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 17:01:25 PST 2017


sbc100 added a comment.

I'm running into some issues with our current musl tests using the wasm start section, even purely for static initializers.

The problem is that we are currently exporting our memory to JS, but the memory export cannot be accessed until the module is instantiated (i.e. after the start function).  This means that any system calls (e.g. puts) don't work during the start function because they have no access to the memory.

Importing the memory would fix this.

Maybe I'm missing something?


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D40559





More information about the llvm-commits mailing list