summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r--lld/ELF/OutputSections.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index be31e652442..190d5543f12 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -408,6 +408,11 @@ void GnuHashTableSection<ELFT>::writeHashTable(uint8_t *Buf) {
Values[I - 1] |= 1;
}
+static bool includeInGnuHashTable(SymbolBody *B) {
+ // Assume that includeInDynamicSymtab() is already checked.
+ return !B->isUndefined();
+}
+
template <class ELFT>
void GnuHashTableSection<ELFT>::addSymbols(std::vector<SymbolBody *> &Symbols) {
std::vector<SymbolBody *> NotHashed;
@@ -860,11 +865,6 @@ bool lld::elf2::includeInDynamicSymtab(const SymbolBody &B) {
return B.isUsedInDynamicReloc();
}
-bool lld::elf2::includeInGnuHashTable(SymbolBody *B) {
- // Assume that includeInDynamicSymtab() is already checked.
- return !B->isUndefined();
-}
-
template <class ELFT>
bool lld::elf2::shouldKeepInSymtab(const ObjectFile<ELFT> &File,
StringRef SymName,
OpenPOWER on IntegriCloud