<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - LLD crashes on Rust generated code with ASan/libfuzzer"
   href="https://bugs.llvm.org/show_bug.cgi?id=43147">bug 43147</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;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - LLD crashes on Rust generated code with ASan/libfuzzer"
   href="https://bugs.llvm.org/show_bug.cgi?id=43147#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - LLD crashes on Rust generated code with ASan/libfuzzer"
   href="https://bugs.llvm.org/show_bug.cgi?id=43147">bug 43147</a>
              from <span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span></b>
        <pre>The crash has been fixed on lld's side for a while

ld.lld: error:
build/amd64-generic/tmp/portage/dev-rust/p9-0.1.0-r13/work/x86_64-cros-linux-gnu/release/deps/p9_tframe_decode_fuzzer-ab429f979ef544a2.
p9_tframe_decode_fuzzer.czbue7pe-cgu.1.rcgu.o:(__sancov_cntrs): sh_link points
to discarded section build/amd64-generic/tmp/portage/dev-rust/p9-0.1.0-
r13/work/x86_64-cros-linux-gnu/release/deps/p9_tframe_decode_fuzzer-ab429f979ef544a2.p9_tframe_decode_fuzzer.czbue7pe-cgu.1.rcgu.o:(.text._ZN3std2io5e
rror5Error3new17hfea99a629fa675e7E)

I think it is correct for lld to reject such a case.


For my reading of <a href="https://reviews.llvm.org/D29104">https://reviews.llvm.org/D29104</a> and
<a href="https://reviews.llvm.org/D29110">https://reviews.llvm.org/D29110</a>, there are some unclear semantics about the
metadata !associated. A metadata does not appear to be the most appropriate
construct to represent such a relation. In particular, optimizations can
usually feel free to drop metadata they don't understand, but !associated
exposes some restrictions. Some developers feel that at least for some
metadata, optimizations should retain them, but this has not reached consensus.
<a href="https://reviews.llvm.org/D72899">https://reviews.llvm.org/D72899</a></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>