[llvm-bugs] [Bug 32770] New: CFI tests using ThinLTO on Windows all fail with unsupported X86 relocation

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 24 10:37:20 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32770

            Bug ID: 32770
           Summary: CFI tests using ThinLTO on Windows all fail with
                    unsupported X86 relocation
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Linker
          Assignee: unassignedbugs at nondot.org
          Reporter: rnk at google.com
                CC: llvm-bugs at lists.llvm.org

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:
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/10028/

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!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170424/9e9cd790/attachment.html>


More information about the llvm-bugs mailing list