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

    <tr>
        <th>Summary</th>
        <td>
            [lld] MinGW backend does not support `-r`
        </td>
    </tr>

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

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

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

<pre>
    LLD with MinGW backend does not seem to support the `-r` option or something equivalent. I've understood this option to be quite standard.

In order to compile [FLINT](https://github.com/flintlib/flint), this option is required for MinGW since we otherwise go beyond the command line length limit when compiling the library. A proposal was brought up in https://github.com/flintlib/flint/issues/2098 to avoid using `lld -r` when cross-compiling from Linux to Windows since the command line length is far greater than what is is on MinGW.

Can this feature be implemented here?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU01vozAQ_TXmMkpkDCRw4NA2yqpSdk8r9WzjAc-usaltku2_XzlJVfXQlfYCSPNmeB96MkaaHGLPmkfWHAq5JuNDL60iJ41VcvhdKK_f-tPpABdKBr6T-_YCeYBOg_YYwfkEEXGG5CGuy-JDgmQQ2I5vAttx8Esi78AHiH7GZMhNgK8rnaVFl7bwzMT-jLA6jSEm7zUkQ_F9LXlQCK8rJYSYpNMy6C3jB8Yfbs_nfFpjyMjBzwtZBNY8Hk_PP36y5sBEa1JaIqsemDgycZwomVVtBz8zcRwtuWRJvX8y0THx9IkARQiZbkANow93CyK5AeGC4JPBcKGIMGWmb97pq_zBz7N0Giw5BItuSgYszZTgYtDdmWYrMtiSCjK8beEBluAXH6WFi4yggl8nk2BdgBz8l44jxbhiZOIoeNdmc-TZk4Y15p-yHbdWwy2gG6HgY9x80BqDn-FEbv2Td1_IaX-Jd9lf6aMIowwwBZQpB2Kkg4uRKQ-yoe5m3qf4nqS72T2iTGvAnDbNi8UZXUINBgOy6ljovtJd1ckC-3IvulqU5b4tTD_IZtTdTjUVb-qmk5Vsa4l13VT7tlNqLKgXXNQlF7zk9a5st6UqkcturLCtSzV0rOY4S7Jba8_z1oepuFrXl2XF27KwUqGN14oIYa1mQuSuhD7DN2qdIqu5pZjix4FEyV5blfHN4cva3OvyXpViDbb_R8r5_v21WYL_hcOnoO-Ez734GwAA__9Y1UmG">