diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 10eebb4028fd..cf19e78d3468 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -215,8 +215,6 @@ void elf::sortByOrder(MutableArrayRef In, static OutputSection *createSection(InputSectionBase *IS, StringRef OutsecName) { OutputSection *Sec = Script->createOutputSection(OutsecName, ""); - Sec->Type = IS->Type; - Sec->Flags = IS->Flags; Sec->addSection(cast(IS)); return Sec; }