[PATCH] D39371: [ELF] - Stop sorting input sections in createSections().

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 27 10:55:06 PDT 2017


ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: ELF/Writer.cpp:1024
+  DenseMap<SectionBase *, int> Order = buildSectionOrder();
+  if (!Order.empty()) {
+    for (BaseCommand *Base : Script->SectionCommands)
----------------
Remove {}


================
Comment at: ELF/Writer.cpp:1033
+  // __attribute__((init_priority(N))).
+  if (OutputSection *Cmd = findSection(".init_array"))
+    Cmd->sortInitFini();
----------------
Cmd -> Sec


https://reviews.llvm.org/D39371





More information about the llvm-commits mailing list