[PATCH] D45325: [ELF] - Reorder local symbols.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 11:10:54 PDT 2018


ruiu added inline comments.


================
Comment at: ELF/SyntheticSections.cpp:1571
+  // the STT_FILE symbols, they are already naturally placed first in each group.
+  std::stable_sort(Symbols.begin(), E,
+                   [&](const SymbolTableEntry &L, const SymbolTableEntry &R) {
----------------
How does this guarantee that a local symbol group for some file always starts with a STT_FILE symbol?


https://reviews.llvm.org/D45325





More information about the llvm-commits mailing list