<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - older versions of wasm-ld crashes when when given object files built with llvm trunk"
   href="https://bugs.llvm.org/show_bug.cgi?id=48827">48827</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>older versions of wasm-ld crashes when when given object files built with llvm trunk
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>wasm
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sbc@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, sbc@chromium.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>We ran into issues where object files built with trunk version llvm were
causing crashes in older versions of wasm-ld.

I believe that this change added a new symbol type to pretty much all object
files which causes older versions of wasm-ld to crash:

<a href="https://reviews.llvm.org/D92215">https://reviews.llvm.org/D92215</a>

Clearly we need to be able add new symbol types and relocations types I think
we can take a couple of measures here to make things smoother:

1. Report readable errors rather than crashing when new symbol types or
relocation types are added.

2. In this particular case we should avoid using this new symbol type unless we
truly need it.  i.e. we should revisit the discussion around whether to use a
table symbol for the default call_indirect table.

WDYT andy?   I can take a look at (1) but thats the easy bit.   Revisiting (2)
could be trickier?   I guess it will make the code less clean for longer but
avoiding breaking changes to the object format is also very compelling.</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>