diff options
Diffstat (limited to 'lld/COFF/InputFiles.cpp')
-rw-r--r-- | lld/COFF/InputFiles.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/COFF/InputFiles.cpp b/lld/COFF/InputFiles.cpp index 8f18910617b..9e2345b0a51 100644 --- a/lld/COFF/InputFiles.cpp +++ b/lld/COFF/InputFiles.cpp @@ -190,8 +190,8 @@ SectionChunk *ObjFile::readSection(uint32_t SectionNumber, GuardLJmpChunks.push_back(C); else if (Name == ".sxdata") SXDataChunks.push_back(C); - else if (Config->DoICF && Sec->NumberOfRelocations == 0 && Name == ".rdata" && - LeaderName.startswith("??_C@")) + else if (Config->TailMerge && Sec->NumberOfRelocations == 0 && + Name == ".rdata" && LeaderName.startswith("??_C@")) // COFF sections that look like string literal sections (i.e. no // relocations, in .rdata, leader symbol name matches the MSVC name mangling // for string literals) are subject to string tail merging. |