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

    <tr>
        <th>Summary</th>
        <td>
            lld does not recognize/handle "--no-enum-size-warning" or "--no-wchar-size-warning"
        </td>
    </tr>

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

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

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

<pre>
    Currently testing linking of a large project with somewhat-old static libraries that use GCC 9.3.0 to compile and link. In order to get the link to be successful, I have to use:

    --no-wchar-size-warning
    --no-enum-size-warning

as linker flags. Ideally I would be using lld in this case to speed up the link time etc., but in order to do that I have to remove those flags since lld does not recognize them:

    arm-poky-linux-gnueabi-ld.lld: error: unknown argument '--no-wchar-size-warning'
    arm-poky-linux-gnueabi-ld.lld: error: unknown argument '--no-enum-size-warning'
    collect2: error: ld returned 1 exit status

Can these be added as ignored flags for lld (I guess for arm/aarch64?) for better GNU compatibility? Or perhaps can the functionality be added to perform an equivalent action? (FWIW, linking in lld doesn't seem to be a problem when I have those flags removed, I'd just like to have a single set of flags in this case)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytVE2TozYQ_TVw6YIyYmzjA4fEW7PlS3JK7VlAG7QjJEcf4538-jzJ8-Eks7dwQBLd6n79-jWDnV76Y3SOTdAvFNgHZWbSyjyl1Z5JkpZuZro4-53HQFcVFvJ25esiQ2X1RD7IoEbcGZx0ij0FWCh6pq_HIx3qtt5QsDTa9aI0kzRTjl_TyZB1E7tknTngHmdLOg9MPo4je3-OuhBHOtEinzmZELlofyk2X4rN65vwVJWx1XVcpKu8-ourq3QGJfzLgU1cP7Hf3tLn9AB01nL2ADix1KDlRFcbUSlARZ_5wUEZAFaeRukzLH9hnihe7spQKxOHsU74hxjSlfeCJ3vj6aMux6tNu8UiYEZASDZyzjZZEGtsgNdoZ4MKUp71EyKkW6uLfXqpgCH-qGYTWQ6q0lONOPAnds66tInmydirwY05rhAAFWL_MxrF_n_N8N8-3CcYrdbQmvhHLJDgOERnwHJD_EOFrLzo7wk4ytQVBoHolZwm-KKrajbWYXsj9WxdprQQ3YnmCInlT6iqEI9SunHZPRTtYyEO-fvAIaBlX3_7I0sYWh-UVuEFLvS7owu7RV6SDHJmOkczBmWNTD4fKNBfeCLeigEg_jOqZ6kTIzJ7p2DA8_jt9C2J5W3-IJi35hswhIqZ19fxkGkkB43zdWHzrqM79dwENeXpwe2JvkcfEPspyy27yySxGVPpMX-Y9tvFe2mDhpL7Zrfruk0rmrac-nY6tAdZBhU095-LE0wuGHQELoT4WccFpuHd_pnmRBmd7pcQLj4JXaAnjzP-P3Go0QoctH5-W6rXHxSOynt0FZvtYbNvyqU_H5pOttt92zbtbtsNOyG6odl3G8kPchRtqeXA2vfF9lckNXylHAL7YvulVL3YCNE0TYd1t23r_QFEHM7j7mHqhv15WzxseJVK1wlHbd1cuj5DGuLsYdTKB_9hlN5DkMw5HeLLiKa5friy02VO3GfgfwO-rd5-">