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: unassignedb...@nondot.org Reporter: r...@google.com CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs