diff options
Diffstat (limited to 'lld/ELF/SymbolTable.cpp')
-rw-r--r-- | lld/ELF/SymbolTable.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/ELF/SymbolTable.cpp b/lld/ELF/SymbolTable.cpp index 666755173cd..83645031fed 100644 --- a/lld/ELF/SymbolTable.cpp +++ b/lld/ELF/SymbolTable.cpp @@ -105,6 +105,7 @@ void SymbolTable::addSyntheticSym(StringRef Name, OutputSection<ELFT> &Section, } template <class ELFT> void SymbolTable::addIgnoredSym(StringRef Name) { + DefinedAbsolute<ELFT>::IgnoreUndef.setBinding(STB_WEAK); DefinedAbsolute<ELFT>::IgnoreUndef.setVisibility(STV_HIDDEN); auto Sym = new (Alloc) DefinedAbsolute<ELFT>(Name, DefinedAbsolute<ELFT>::IgnoreUndef); |