diff options
-rw-r--r-- | lld/ELF/OutputSections.cpp | 2 | ||||
-rw-r--r-- | lld/ELF/Writer.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 4ab8519a0cb..8e95dff91c9 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -554,7 +554,7 @@ void GnuHashTableSection<ELFT>::writeHashTable(uint8_t *Buf) { } static bool includeInGnuHashTable(SymbolBody *B) { - // Assume that includeInDynamicSymtab() is already checked. + // Assume that includeInDynsym() is already checked. return !B->isUndefined(); } diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index a35e800bd8b..47f1c6a65e4 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -681,7 +681,7 @@ template <class ELFT> static bool includeInSymtab(const SymbolBody &B) { return true; } -static bool includeInDynamicSymtab(const SymbolBody &B) { +static bool includeInDynsym(const SymbolBody &B) { uint8_t V = B.getVisibility(); if (V != STV_DEFAULT && V != STV_PROTECTED) return false; @@ -884,7 +884,7 @@ template <class ELFT> bool Writer<ELFT>::createSections() { if (Out<ELFT>::SymTab) Out<ELFT>::SymTab->addSymbol(Body); - if (isOutputDynamic() && includeInDynamicSymtab(*Body)) + if (isOutputDynamic() && includeInDynsym(*Body)) Out<ELFT>::DynSymTab->addSymbol(Body); } |