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

    <tr>
        <th>Summary</th>
        <td>
            Always invoke lld with the `-lSystem` argument in MachO tests
        </td>
    </tr>

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

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

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

<pre>
    It appears that the recent versions of ld64 require `-lSystem` to always be linked into userland binaries and dylibs. (Previously, it only had this requirement for binaries, and that's the current behavior that LLD implements.) It would be nice to have behavior parity here, not least because it makes it easier to swap out ld64 for LLD in our test suite to see if we are implementing the same behaviors. Unfortunately, simply updating the `%lld` substitution to include `-lSystem` results in quite a few errors.

I will be putting up a few fixes that get us closer to the goal of having `-lSystem` in our `%lld` substitution, but I'm not sure when I'll get around to cleaning all the failing tests up -- please feel free to grab this task if you're interested.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1k9uK2zAQhp_GvhEJjp3jhS_SLgsLW1oofYCxNbbVKJJXIyXN23dG2UNpKYTE1mH-b_5_0nl9a5-ignlGCKTiBJG_UAXs0UV1wUDGO1J-UFZv17z-kkxAVWyrhf1-o4hnflTRK7BXuJHqUFnjTqiVcbyaCIMFp1VnHASDpORF36zpaKmKev8t4MX4RPZW1J-Vico7e1MTaMYw9KZ3FpjBh_cyclgqCXBR7yhD9ykEOdjhBFw03Nt5fn5Q5jzbXISWRX1Q3PHVJ6uF1pkehZ-v4MfNmVUic2BAkXI-KotAUrsHbkpIz3DifviBNwwGKUJXmJVP8W6WAGd1x2u8j3yfkolZj5CLDOqKCtjPd0DjxtwLwfkDh6364bhaTA4i3q0iuXJTadbwfomjKOqNtVoyodRRNDFFDlAEjett0v9EF5CSjSSQL5kN1IBXhSGIblE9FNXx_v2krsZa8WxOMWum-fX0YH7h6_SMGDl11VtPd08EbPRgZYakHb73F8KrP_-ll3Y7NvWJkz7nLCixZ9cJXV5jKFGF4JOMhGdxBCdCwFuiP4Cx2SSOgAR7sVCzBMpbiFYNAXMoY4DuPngR6CT53HxiBUnIRR4GRtbLUreNPjQHKJnQYnu8j75xF3_i8ee5upo4vSXyZ6cQxpRnmVv-Av309U5UpmDbKcaZiuZY1I_8GblC6pa9P_OLtZe3n8Uc_E_seegfDVGSf8LjZr3ar8up3e6adb-tcc8L_X6Aw15Xdd2ssNK43h2wtNChpbbYfCrqWoxujpmC34rNQ2nams9XTdXUq81qvVvu1kOldzDs6r7TtT4U6wrPbOVSSJY-jGVoM1SXRuJNa7iZj00gMqNDzIJcH1KcfGjZyabM8G0m_w3iooxP">