<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/109248>109248</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Does LLVMGold support Windows PE files?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
CycloneRing
</td>
</tr>
</table>
<pre>
Hi, I'm using Clang/MinGW/MSYS2 to compile Qemu on Windows x64 for Windows x64
When i use --enable-lto otpion clang is asking for LLVMGold.dll which is not presented in Clang and LLVM package in MSYS2.
After hours of searching I found there's a LLVMGold.dll in old NDK packages.
Also on the LLVM docs I've seen it mentioned Gold is a linker for ELF only. Now I'm confused.
Does LLVMGold.dll supports optimizing .dll and .exe files on windows or it's only for unix?
Why it was offered as dll inside NDK for windows before?
Is there an alternative for Windows PE files?
I am using version 18.1.8
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsU19vpDYQ_zTmZbQIzO4CDzykyXGNmju1PalRHw0ewI3xII_ZTfrpK7O7Sle6JwuZ398ZK2YzOsRGHH4Rh6dErWEi3zx-9JYc_mncmHSkP5pfjZCP8CxkOcPKxo3waJUbhWy_Gff1NZ4__v4hIRD0NC_GIvyB8wrk4NU4TWeG9-MeBvL__xbZk8geXid0YGBlhN0Oneos7mwgoLAYctBHITAMit-icOR4efnr21eyOtXWwnky_RR_cBRg8cjoAmow7uIRlNMbABbVv6kR483mNr3oPwwBPUy0egYagFH5fopKzzDQ6jSECT0KWTKoe2XjgKyG70-_3bj5xmmZYvgw4UVbU89bfycExhg4wIwuGHKoITJuEcEa94Z-C_nlpQVy9iOF73S-dt-TG1ZGfZV5IuR7S7wuC_nAQEsws_k35tguYgspviMMxiJHb-frIMiDCVu8qLZJr868i6KF24A-ot2ziv0M6FGDYrgUwEbjVkCE3Rg7HMijKNoL_pkvFYJyoGxA71QwJ7zbht-_XIx9gkDdVu2EnuMm5FWap1Wim0LXRa0SbPJSHssiqw51MjX5MetLJbE79nmvsK4KdTxW2UHVZa70UCamkZncZ3VeZ6UsizrN9koVXdUXAxb5oZJin-GsjE2tPc0p-TExzCs2eVbLfZVY1aHl7alI6fAM262QMr4c30TQrltHFvvMGg78SRNMsNjcTes2qZ81kKzeNlMIC4viQchWyHY0YVq7tKdZyDbyXo_d4ukf7IOQ7eaGhWyvdk-N_C8AAP__UWBGMg">