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

    <tr>
        <th>Summary</th>
        <td>
            lld silently creates an non-working executable if both .ctors and .init_array exist
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            lld
      </td>
    </tr>

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

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

<pre>
    If input object files contain both `.ctors` and `.init_array`, the result would contain both `.ctors` and `.init_array`, and the result is very likely to crash because some initializer are not executed. We may want to emit a warning from lld if the output may not work due to this issue.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycksGO3CwQhJ8GX1prYbA9Owcf_j_RSHmCHKO2aY87i2EFzc46Tx_hjZQ954QEVDVVH5gz3wPRpIb_1fC1wSJbTFMqbLu-maM7pm8rcHgtAnH-SYvAyp4yLDEIcoA5ygZq1O0iMWU1asDgzg0OLD8wJTzUqJX5ArIRJMrFCzxi8e5fPOrBJx_O8EbpAM8v5A-QCEvCvMFMC5ZMkONOUE0YPf-iBJgIQhSgd1qKkGvhO8GOBzwwSNXTzgIID0yBwx3WFHfw3gGv59xYpFZRFdXmEdMLuEJVKRtn4JwLtY2brLvaKzY0deN1tN2lM7bZpkG7XvcDmrVb7IxI3TpeL254tnruB9M1PBltbKe11ZfOaNtqvPZDd1muq7lYZ4zqNe3IvvX-bW9jujfnyGl81peu8TiTzydMY7x3yphKNU319tNc7ln12nOW_FcvLJ6mmjGzpyD-gCURCmXAACGGp5qylvFRGs6eah0ntQ9kJ5ZPsIDeOUtTkp82kdes7H_K3JS53Vm2MrdL3JW51Rf8WZ5eU6yfS5nbGScrczsT_Q4AAP__WsbhMg">