[llvm-bugs] [Bug 42713] wasm-ld not setting start symbol

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 22 11:28:44 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42713

Thomas Lively <tlively at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |tlively at google.com
         Resolution|---                         |WONTFIX

--- Comment #1 from Thomas Lively <tlively at google.com> ---
I believe this is WAI, since there a few problems with the WebAssembly concept
of a start function that make it unusable as a general entry point for many
programs. From the docs
(https://webassembly.org/docs/modules/#module-start-function):

 > If the module has a start node defined, the function it refers should be
called by the loader after the instance is initialized, including its Memory
and Table though Data and Element sections, and before the exported functions
are callable.

The issue here is that code run by the entry symbol may call out to the host
environment which may then try to call code exported by the module, but if this
is run as the WebAssembly start function, that exported code would not yet be
available.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190722/4507541f/attachment.html>


More information about the llvm-bugs mailing list