<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:eblot.ml@gmail.com" title="Emmanuel Blot <eblot.ml@gmail.com>"> <span class="fn">Emmanuel Blot</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - NOLOAD attribute of output section seems to be ignored"
   href="https://bugs.llvm.org/show_bug.cgi?id=45570">bug 45570</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>DUPLICATE
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - NOLOAD attribute of output section seems to be ignored"
   href="https://bugs.llvm.org/show_bug.cgi?id=45570#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - NOLOAD attribute of output section seems to be ignored"
   href="https://bugs.llvm.org/show_bug.cgi?id=45570">bug 45570</a>
              from <span class="vcard"><a class="email" href="mailto:eblot.ml@gmail.com" title="Emmanuel Blot <eblot.ml@gmail.com>"> <span class="fn">Emmanuel Blot</span></a>
</span></b>
        <pre>It is indeed a duplicate of 45336.

Applying the patch fixes the issue. The patch does not directly apply to the
10.0 tag (as the test file has been heavily modified since), but the lld fix
does and the generated lld works at expected, with NOLOAD sections flags as
NOBITS.

Thanks for the pointer.

*** This bug has been marked as a duplicate of <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Output sections marked NOLOAD with no input sections are given type SHT_PROGBITS"
   href="show_bug.cgi?id=45336">bug 45336</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>