<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57623>57623</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [ELF] ld.lld not honoring --no-warn-mismatch
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Nimrag2000
      </td>
    </tr>
</table>

<pre>
    Since [D125074](https://reviews.llvm.org/D125074) using NOLOAD for .bss sections throws the 'section type mismatch' warning because the linker incorrectly assumes that .bss sections should be assigned the SHT_PROGBIT attribute.  We cannot suppress the warning because --no-warn-mismatch is quietly ignored.  Can we either revert this change or add support for the --no-warn-mismatch?

Embedded systems have relied on adding .bss sections to NOLOAD output sections for years.  The 15.0.0 release broke this, and we can not take the 15.0.0 release.  Our products require zero warnings.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxlU8tu2zAQ_BrpsrBA0ZZlHXRI4rgtEMRFY6DHghQ3EhtKdPmI4X59l0rcIAkgiORyOTM7XEqrzu2DnjqErLrelrxi9SqrthnfDCEcfba8yviOPofPGk--MOZ5LKzrKXTJ5g1Er6ce7vd3-6stPFoHhfQePHZB28lDGJw9pYFYeP0ahnA-IozajyJ0A8XhJNyUcCR2Inqc842entABKbTO0UFzBuF9HDHBifCByA82GkUAKUn3E6oZ5OHr4df3H_sv198OIEJwWsaABcBPhE5Mkw3g4_Ho0L9o_KhjsZjsIgUXF7WgPfyJGpMcorEOFcHdiAlOCKgJxAE5hi4QIOV2g5h6BDJGKDWTWdpKRiW-z_jZcpexbcauXv63o0SlqBh_9gFHD4N4RiIwmmLkJIEmvR9Mt5cLsTEcY3jbSbxnFM6T5gPxl1XBCpbwUFC50tknnHVn_AbEpFJR5BMko4J4ermY94cIaR8dHJ1VsQuewmSPQ_iLzl789EWObble8_WqrMsqV-1SNctG5EEHgy313-3djnoPjKI2UzPdYMncVNtnj_LoTPu-SXtyPsqisyMtUqe-DgvS9Zuqp6Wm5kEqbFfVa77Mh1Y2K5Riw0WlSqzXm7LjfF2XjBZsWctNboRE45O8jPMJTzBD0Jyk5rrljHPWsA09hoo8qbGupBBY86YpG_WYrRiOQpv_Dyd37SxJxt7TptE-vL2q_LVtZzcSvohhsK6916MTPWeM5TN7O6v_B3OXQNg">