<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CFI tests using ThinLTO on Windows all fail with unsupported X86 relocation"
   href="https://bugs.llvm.org/show_bug.cgi?id=32770">32770</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>CFI tests using ThinLTO on Windows all fail with unsupported X86 relocation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Linker
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rnk@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This was found after Evgeniy's refactoring of the CFI tests in r301016.

The failing tests:
Failing Tests (4):
    cfi-devirt-lld-thinlto :: simple-pass.cpp
    cfi-devirt-thinlto :: simple-pass.cpp
    cfi-standalone-lld-thinlto :: simple-pass.cpp
    cfi-standalone-thinlto :: simple-pass.cpp

Example build:
<a href="http://lab.llvm.org:8011/builders/sanitizer-windows/builds/10028/">http://lab.llvm.org:8011/builders/sanitizer-windows/builds/10028/</a>

LLD crashes when attempting to emit a COFF object after ThinLTO optimization:

$ "C:/b/slave/sanitizer-windows/build/./bin/clang.exe" "-fuse-ld=lld"
"-Wl,-nopdb" "-flto=thin" "-fsanitize=cfi" "-fvisibility=hidden" "-o"
"C:\b\slave\sanitizer-windows\build\projects\compiler-rt\test\cfi\Standalone-thinlto\Output\simple-pass.cpp.tmp"
"C:\b\slave\sanitizer-windows\llvm\projects\compiler-rt\test\cfi\simple-pass.cpp"
# command stderr:
unsupported relocation type

UNREACHABLE executed at
C:\b\slave\sanitizer-windows\llvm\lib\Target\X86\MCTargetDesc\X86WinCOFFObjectWriter.cpp:92!</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>