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

    <tr>
        <th>Summary</th>
        <td>
            ld.lld 20 on win32: error: unknown argument: --push-state
        </td>
    </tr>

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

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

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

<pre>
    Hello,

easily reproducible in a MSYS2 shell or with the llvm-mingw toolchain:

```
$ ld.lld -m i386pep --subsystem windows --shared -Bdynamic -o score.dll foo.o --push-state --pop-state
lld: error: unknown argument: --push-state
lld: error: unknown argument: --pop-state
```

It worked fine with previous versions. push-state / pop-state was implemented here: https://github.com/llvm/llvm-project/commit/f75ea0b99580f3ffc7473f6703890181ad231b83 and `ld.lld --help` mentions the options.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUUruO3DgQ_BoqaUjgQ89AgfYOg7vA0UYOKbI14i5FCiQ1wvy9wdmxvc68gAAVG-ju6qqSMZqrQxxJ80Kafwt5pNWH8U2hxWAwFLPX9_E_tNYT_g-hE6ETymjsHQLuwetDmdkiGAcSvr1-f-UQV7QWfIDTpBXSimDtbSs3464nJO-tWqVxREwf00hLnx-dCK_B6spaDeUGRvTtjjuUZTzmeI8JNziN0_6MubbKgBrKF313cjMKSg9R-YCVthYW7ysPZbkfcS1jkgnzw-8fmNDJWk3EBBiCDxkc7t3504EM12NDl3Ltc_vft3xa8sdtdPo_wenDO2pYjMMPffaAN-OPCDcM0XgXK_jEmfAL_BoIp4xgtt1i3oYaVgyYl64p7TELyi-EX64mrcdcKb8RfsnSP3_lHvwbqkT4RfltMxksXYOSzsPQ9HQRy6K6uhNL21HRD5T1TGou2NwLkE4DaelPc8oV7U5aCplJZv3w2e8PXBV6FHoQgyxwZF3NeiqGtinWcaG9XBiimrtGDIqiqvuhmfu2ZppiLQozcsobKhhnPW9pU7FGcsF6yhYtlOhqUlPcpLFVvqjy4VqYGA8cmWCUdoWVM9r4CDPn2S_Oc6rD-BBgPq6R1NSamOLvAckki-PzMk7Bu5wywb8Uj-IIdvyyDw_ukfDLk_5t5D8CAAD__3nQJiE">