Minor cleanup.
Currently it looks wierd that having method addPredefinedSections()
we still add 2 sections outside it without real reasons.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Naturally this change made me wonder whether this is too inefficient or not, but it is probably okay since the number of output sections is not very large.
ELF/Writer.cpp | ||
---|---|---|
1470–1474 | Move this after the code to add BuildId to remove the variable I. if (needsInterpSection()) OutputSections.insert(OutputSections.begin(), Out<ELFT>::Interp); | |
1477 | now -> to beginning of the file |
Move this after the code to add BuildId to remove the variable I.