forked from OSchip/llvm-project
parent
4cc0cd6556
commit
a4c15c1339
|
@ -908,9 +908,8 @@ static void sortBySymbolsOrder(ArrayRef<OutputSection *> OutputSections) {
|
|||
}
|
||||
|
||||
// Sort sections by priority.
|
||||
for (OutputSection *Base : OutputSections)
|
||||
if (auto *Sec = dyn_cast<OutputSection>(Base))
|
||||
Sec->sort([&](InputSectionBase *S) { return SectionOrder.lookup(S); });
|
||||
for (OutputSection *Sec : OutputSections)
|
||||
Sec->sort([&](InputSectionBase *S) { return SectionOrder.lookup(S); });
|
||||
}
|
||||
|
||||
template <class ELFT>
|
||||
|
|
Loading…
Reference in New Issue