[PATCH] D13911: [ELF2] Determine the order of entries of symbol tables in the finalize() phase.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 20 14:08:25 PDT 2015


ruiu added inline comments.

================
Comment at: ELF/OutputSections.cpp:699-702
@@ +698,6 @@
+  if (StrTabSec.isDynamic()) {
+    unsigned Index = 0;
+    for (SymbolBody *Body : Symbols) {
+      Body->setDynamicSymbolTableIndex(++Index);
+    }
+  }
----------------
  size_t I = 0;
  for (SymbolBody *B : Symbols)
    B->setDynamicSymbolTableIndex(++I);


================
Comment at: ELF/OutputSections.cpp:829-832
@@ -830,1 +828,6 @@
 
+template <class ELFT>
+ArrayRef<SymbolBody *> SymbolTableSection<ELFT>::getSymbols() const {
+  return Symbols;
+}
+
----------------
You can inline this function in .h.


http://reviews.llvm.org/D13911





More information about the llvm-commits mailing list