<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:alex.bereza@huawei.com" title="Alex Bereza <alex.bereza@huawei.com>"> <span class="fn">Alex Bereza</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - clang ignores linker script option -T when cross compiling for freestanding environment"
   href="https://bugs.llvm.org/show_bug.cgi?id=46330">bug 46330</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>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>DUPLICATE
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - clang ignores linker script option -T when cross compiling for freestanding environment"
   href="https://bugs.llvm.org/show_bug.cgi?id=46330#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - clang ignores linker script option -T when cross compiling for freestanding environment"
   href="https://bugs.llvm.org/show_bug.cgi?id=46330">bug 46330</a>
              from <span class="vcard"><a class="email" href="mailto:alex.bereza@huawei.com" title="Alex Bereza <alex.bereza@huawei.com>"> <span class="fn">Alex Bereza</span></a>
</span></b>
        <pre>I tried the lastest master build and the issue appears to have been solved. I
think this bug might be a duplicate of 45693, although I'm not 100% sure,
because I did not install clang to /usr/bin. 

The issue appears to be very similar in that clang was unable to determin the
correct linker to use and tried to link for X86 instead of ARM using the native
host toolchain.

The other issue didn't have the problem regarding -T command line option being
ignored, but this problem also disappeared with latest build from master
(including d6efc9811646edbfe13f06c2676fb469f1c155b1, which fixed the other
issue).

Everything seems to be working now.

Thanks.

*** This bug has been marked as a duplicate of <a class="bz_bug_link 
          bz_status_CONFIRMED "
   title="CONFIRMED - Fails to detect toolchain for cross-compilation for bare metal when installed in/usr/bin/"
   href="show_bug.cgi?id=45693">bug 45693</a> ***</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>