<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:orgads@gmail.com" title="orgads@gmail.com">orgads@gmail.com</a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Support linker script as input file on MinGW"
   href="https://bugs.llvm.org/show_bug.cgi?id=42135">bug 42135</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>WONTFIX
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Support linker script as input file on MinGW"
   href="https://bugs.llvm.org/show_bug.cgi?id=42135#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Support linker script as input file on MinGW"
   href="https://bugs.llvm.org/show_bug.cgi?id=42135">bug 42135</a>
              from <span class="vcard"><a class="email" href="mailto:orgads@gmail.com" title="orgads@gmail.com">orgads@gmail.com</a>
</span></b>
        <pre>Ok, the response file doesn't work for me. Reported also here:
<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - lld doesn't seem to work with g++ on MinGW"
   href="show_bug.cgi?id=42121">https://bugs.llvm.org/show_bug.cgi?id=42121</a>

$ g++ -fuse-ld=lld -o test.exe test.o

$ cat test.res
test.o

$ g++ -fuse-ld=lld -o test.exe @test.res
ld.lld: error: --plugin-opt: ld.lld.exe: Unknown command line argument
'F:/git-sdk-64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.1.0/lto-wrapper.exe'. 
Try: 'F:\git-sdk-64\mingw32\bin\ld.lld.exe -help'
ld.lld: error: unknown emulation: i386pe
ld.lld: error:
F:/git-sdk-64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/lib/../lib/crt2.o:
unknown file type
ld.lld: error:
F:/git-sdk-64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.1.0/crtbegin.o: unknown
file type
ld.lld: error: test.o: unknown file type
ld.lld: error:
F:/git-sdk-64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.1.0/../../../../i686-w64-mingw32/lib/../lib/default-manifest.o:
unknown file type
ld.lld: error:
F:/git-sdk-64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.1.0/crtend.o: unknown
file type
collect2.exe: error: ld returned 1 exit status</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>