Index: lld/ELF/Symbols.cpp =================================================================== --- lld/ELF/Symbols.cpp +++ lld/ELF/Symbols.cpp @@ -120,7 +120,7 @@ // Returns true if this is a weak undefined symbol. bool Symbol::isUndefWeak() const { // See comment on Lazy in Symbols.h for the details. - return !isLocal() && isWeak() && (isUndefined() || isLazy()); + return isWeak() && (isUndefined() || isLazy()); } InputFile *Symbol::getFile() const {