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

    <tr>
        <th>Summary</th>
        <td>
            [lld] Many "failed to compute relocation" warnings on duplicate symbol (coff/i386)
        </td>
    </tr>

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

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

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

<pre>
    Run the following in MINGW32 environment, and observe the warnings.

They appear for each file, on some cases it floods stderr...

```sh
echo 'int main() { return 0; }' | tee a.c > b.c
gcc -c a.c b.c
gcc -fuse-ld=lld a.o b.o
warning: failed to compute relocation: IMAGE_REL_I386_REL32, Invalid data was encountered while parsing the file
warning: failed to compute relocation: IMAGE_REL_I386_REL32, Invalid data was encountered while parsing the file
ld.lld: error: duplicate symbol: _main
>>> defined at a.o
>>> defined at b.o
collect2.exe: error: ld returned 1 exit status
```

This doesn't happen on 64-bit target.

CC @mstorsjo 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEU82K4zgQfhr5UsQoJf_EBx_Snc7QsL2HYWGPjSyVbQ2yFCS5M3n7RU4zS-bQ1wFhiyqqSvX9yBjN5Ih6Vj-x-lTINc0-9D5MUsdi8PrWf18dpJlg9Nb6q3ETGAdvr39_-1cgkPswwbuFXGL4DNJp8EOk8EFbzVUGZ9wUS8ZPjB_v339muoG8XEgGGH0AkmqG0VjKHbyD6BcCJSNFMAlG672OEJOmEMryoRNr-P3E-R4gNXtg2BqXYJHGMTww7IC1TxAorcEBZ-IJWHti2AJrnyERgSwVMPECQ6nubSalYKe2-GNsXCPtrGbiZK0GWXoYSn_Pf67KxBFGaSxpSB6UXy5rIghkvZLJeJfzr2_Hby_v31_-en8VhyZfBObdX92HtEaDlknCVUYgp_zqEgXScJ2NJbjIEDMFGyEZsj8-2-rSZkSOQCH4kC96vVijZCKIt2XwNsfeNzrurImX-wFNo3GkQaaM5RfZXygrby2phCX9pIeZVn8yTBr2QD9NgphkWuNvSnkUoomgPUXHsE0wZ026rMCm2g0mQZJhovSguOdnYBVfYvIh_vBQ6F7oTnSyoH7ftHUnRINYzD3nqqsJO95IqjoheaV4u69EK7jk3dAVpkeOgiPveMdbjuX-QKKiA-6VqEnWNas4LdLY0tqPpfRhKkyMK_UNb1AUVg5k4-ZaREdX2JIMMZs49LlmN6xTZBW3Jqb4f5dkkt3snlmrT_Am3Q0Y4pfCQfxl5YzP7wQDw4Py48jwbMShYdgVa7D9nNIlMnFkeGZ4nkya16FUfmF4zs_5_O0uwf8glXJxXiIyPG9L_hcAAP__SINyCA">