diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 7c53d2fe37ea..e12b675f3828 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1252,7 +1252,7 @@ static bool computeIsPreemptible(const SymbolBody &B) { // -Bsymbolic means that definitions are not preempted. if (Config->Bsymbolic || (Config->BsymbolicFunctions && B.isFunc())) - return !B.isDefined(); + return false; return true; }