[LLD] [COFF] Fix autoexport from LTO objects with comdat symbols
authorMartin Storsjö <martin@martin.st>
Mon, 24 May 2021 12:06:56 +0000 (15:06 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 3 Jun 2021 12:14:49 +0000 (15:14 +0300)
commit728cc0075e5dfdb454ebe6418b63bdffae71ec14
treed29c2093aa366c879287e9646c27e385bd6e73ac
parent7c234ae549eadcf362f82198d5416d0019d9690c
[LLD] [COFF] Fix autoexport from LTO objects with comdat symbols

Make sure that comdat symbols also have a non-null dummy
SectionChunk associated.

This requires moving around an existing FIXME regarding comdats in
LTO.

Differential Revision: https://reviews.llvm.org/D103012
lld/COFF/InputFiles.cpp
lld/test/COFF/export-all-lto.ll