<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:andrew@ziglang.org" title="Andrew Kelley <andrew@ziglang.org>"> <span class="fn">Andrew Kelley</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - WebAssembly start component should be emitted with definition of the start function"
   href="https://bugs.llvm.org/show_bug.cgi?id=37198">bug 37198</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;">Resolution</td>
           <td>---
           </td>
           <td>WONTFIX
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>REOPENED
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - WebAssembly start component should be emitted with definition of the start function"
   href="https://bugs.llvm.org/show_bug.cgi?id=37198#c14">Comment # 14</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - WebAssembly start component should be emitted with definition of the start function"
   href="https://bugs.llvm.org/show_bug.cgi?id=37198">bug 37198</a>
              from <span class="vcard"><a class="email" href="mailto:andrew@ziglang.org" title="Andrew Kelley <andrew@ziglang.org>"> <span class="fn">Andrew Kelley</span></a>
</span></b>
        <pre>Thank you for the clarification Sam. After reading the linked GitHub issue and
your comment, it is now my belief that the Zig project has no need for this
feature, as I now understand it.

What I thought it was was the equivalent of the ELF _start symbol, which calls
main(). In Zig there are several ways to create a build artifact:

build-obj - creates a relocatable object file
build-lib - creates a library
build-exe - creates an executable

Since Zig has no constructors (global variables & constants must be initialized
with constant data), no "init" hooks are needed. I only wanted to make sure
that the build artifact produced with `build-exe` would have the concept of an
entry point.

If there is no concept of an entry point then perhaps the correct thing to do
when build-exe is invoked with the wasm32-freestanding target is to print an
error such as "web assembly does not support an entry point function; you must
create a library".

I will put this issue back into the state that I found it in, which was
RESOLVED-WONTFIX.

Thanks for your time.</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>