[PATCH] D19171: [ELF] - Get rid of SectionOrder array.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 20 07:42:31 PDT 2016
grimar added a comment.
This patch also fixes the section indexes. We should keep OutputSections order the same as Locations order because of code that assigns them:
unsigned I = 1;
for (OutputSectionBase<ELFT> *Sec : OutputSections) {
Sec->SectionIndex = I++;
Sec->setSHName(Out<ELFT>::ShStrTab->addString(Sec->getName()));
}
http://reviews.llvm.org/D19171
More information about the llvm-commits
mailing list