<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:tlively@google.com" title="Thomas Lively <tlively@google.com>"> <span class="fn">Thomas Lively</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - wasm-ld not setting start symbol"
   href="https://bugs.llvm.org/show_bug.cgi?id=42713">bug 42713</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>tlively@google.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WONTFIX
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - wasm-ld not setting start symbol"
   href="https://bugs.llvm.org/show_bug.cgi?id=42713#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - wasm-ld not setting start symbol"
   href="https://bugs.llvm.org/show_bug.cgi?id=42713">bug 42713</a>
              from <span class="vcard"><a class="email" href="mailto:tlively@google.com" title="Thomas Lively <tlively@google.com>"> <span class="fn">Thomas Lively</span></a>
</span></b>
        <pre>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
(<a href="https://webassembly.org/docs/modules/#module-start-function">https://webassembly.org/docs/modules/#module-start-function</a>):

 > 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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>