[PATCH] D40559: Wasm entrypoint changes #2 (export entrypoint in "start" section) APPLY AFTER D40724

Dan Gohman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 13:25:15 PST 2017


sunfish added a comment.

I'd like to probe the solution of importing the linear memory a little more. There's nothing in wasm that prevents syscalls from working in the wasm start function. The problem seems to just be pre-ES6-module JS. Non-Web, future-ES6-modules-Web, and future programs that are all wasm with no JS won't have this problem.

I haven't thought about it too deeply yet, but it's tempting to wonder if we could get by with the workaround of importing linear memory for now, to avoid adding interfaces that we won't need in the future.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D40559





More information about the llvm-commits mailing list