<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 - wasm-ld: --trace doesn't indicate where some symbols are referenced"
   href="https://bugs.llvm.org/show_bug.cgi?id=41878">41878</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>wasm-ld: --trace doesn't indicate where some symbols are referenced
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>other
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dan433584@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, peter.smith@linaro.org, sbc@chromium.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>While debugging <a href="https://github.com/CraneStation/wasi-sdk/issues/30">https://github.com/CraneStation/wasi-sdk/issues/30</a>, I had a
testcase that was linking in `__cxa_demangle`, and I wanted to know what was
pulling it in. The `--trace` option told me this:

/opt/wasi-sdk/share/sysroot/lib/wasm32-wasi/libc++abi.a: lazy definition of
__cxa_demangle
/opt/wasi-sdk/share/sysroot/lib/wasm32-wasi/libc++abi.a(cxa_demangle.cpp.o):
definition of __cxa_demangle

This doesn't actually indicate where the symbol is referenced from.

The answer turned out to be that it was referenced from
cxa_default_handlers.cpp.o in the same libc++abi.a file.

I can provide my lib++abi.a if that helps.</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>