[lld] [LLD] [COFF] Fix handling of comdat .drectve sections (PR #68116)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 10:15:30 PDT 2023


================
@@ -660,10 +660,15 @@ std::optional<Symbol *> ObjFile::createDefined(
 
     if (prevailing) {
       SectionChunk *c = readSection(sectionNumber, def, getName());
-      sparseChunks[sectionNumber] = c;
-      c->sym = cast<DefinedRegular>(leader);
----------------
mstorsjo wrote:

Thanks, I guess that'd work too.

https://github.com/llvm/llvm-project/pull/68116


More information about the llvm-commits mailing list