[llvm-bugs] [Bug 31884] New: COFF LTO creates object files MSVC cannot read

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 6 13:26:05 PST 2017


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

            Bug ID: 31884
           Summary: COFF LTO creates object files MSVC cannot read
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: ruiu at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I tried to link medium size programs with LLD's new command line option,
/msvclto. That option does LTO in LLD and then pass resulting object files to
MSVC link.exe.

When I attempt to link ninja, MSVC link failed with the following error.

  lld-lto-5b59ce.obj : fatal error LNK1243: invalid or corrupt file: COMDAT
section 0x22C associated with following section 0x22F

Looks like MSVC cannot handle forward references when reading associated
sections. We probably have to emit associated sections first and then
references to them next.

-- 
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/20170206/873a0379/attachment.html>


More information about the llvm-bugs mailing list