aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-10-18 13:06:18 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-10-18 13:06:18 +0000
commit362e197889aab50a356937975ba6868b03842cbb (patch)
treebd61672dd040b1b54fc069b9ed9538be0c4756d4
parentd9f785b1e3dc07275326d0af89545989d657a932 (diff)
[ELF] - Moved, fixed outdated comment. NFC.
It was at wrong place. git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@316077 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--ELF/SyntheticSections.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/ELF/SyntheticSections.cpp b/ELF/SyntheticSections.cpp
index 617df3f2c..a4ae693b0 100644
--- a/ELF/SyntheticSections.cpp
+++ b/ELF/SyntheticSections.cpp
@@ -1316,10 +1316,6 @@ static bool sortMipsSymbols(const SymbolTableEntry &L,
return L.Symbol->GotIndex < R.Symbol->GotIndex;
}
-// Finalize a symbol table. The ELF spec requires that all local
-// symbols precede global symbols, so we sort symbol entries in this
-// function. (For .dynsym, we don't do that because symbols for
-// dynamic linking are inherently all globals.)
void SymbolTableBaseSection::finalizeContents() {
getParent()->Link = StrTabSec.getParent()->SectionIndex;
@@ -1344,6 +1340,9 @@ void SymbolTableBaseSection::finalizeContents() {
}
}
+// The ELF spec requires that all local symbols precede global symbols, so we
+// sort symbol entries in this function. (For .dynsym, we don't do that because
+// symbols for dynamic linking are inherently all globals.)
void SymbolTableBaseSection::postThunkContents() {
if (this->Type == SHT_DYNSYM)
return;