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

    <tr>
        <th>Summary</th>
        <td>
            Windows build failure with -DLLVM_EXPORT_SYMBOLS_FOR_PLUGINS: too many symbols exported
        </td>
    </tr>

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

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

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

<pre>
    Issue #56109 is back.

```
$ wc -l ./tools/clang/tools/clang-repl/clang-repl.symbols
66002 ./tools/clang/tools/clang-repl/clang-repl.symbols
```

It's worth noting that the link.exe error is almost inscrutable (`LINK : fatal error LNK1189: library limit of 65535 objects exceeded`), while the llvm-link.exe error is more useful (`lld-link: error: too many exported symbols (got 66002, max 65535)`)

Random observation: there are 3k+ symbols `__xmm@something` that are exported, and I'm not sure they need to be.

The number is also different between cross and native compiles (66002 vs. 66119)

It's also worth noting that clang.def is approaching the limit too, with 64420 lines.

The clang-repl.def from my cross build can be found here: https://gist.githubusercontent.com/glandium/79352c2fb0cc63589a3b308a0b25b0f6/raw/0f2e4586baade767df4f0f4c68a2e7c63522ca7d/clang-repl.def
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykVF1v4yoQ_TXkZVQL4xjbD35ob2-uqs22q3bv11MEZmxziyEC3DT__grH1W7bx5UiEgLMnDnnzIgQ9GARW1LekPJ2I-Y4Ot8ORlil52kjnTq3dyHMCIQVJc9pAzqAFN1zRugtodfryun6uWzZFk4dXBnICNtF50wgbNcZYYeP-yuPR_Nuk4XzJNONJRTnlLJfD_MR4LLeRcKqACfn4wjWRW0HiKOIEEcEo-1zhq8I6L3zqWphJhciaBs6P0chTSKlJpzu7-6_ACmuoRdRmPXB_v5LntdN-tto6YU_g9GTjuB64GVZlODkf9jFAPjaISpUCR1rCPsNTqM2eEFhXqarz1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