From: kettenis Date: Tue, 11 Sep 2018 09:25:56 +0000 (+0000) Subject: Fix --exclude-libs option. Based on code already committed upstream. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5c18e77d80a7306ed84ee968e0453d2e5db5bb65;p=openbsd Fix --exclude-libs option. Based on code already committed upstream. tested by naddy@ --- diff --git a/gnu/llvm/tools/lld/ELF/Driver.cpp b/gnu/llvm/tools/lld/ELF/Driver.cpp index 36343e90cb8..edc7ee1cfa7 100644 --- a/gnu/llvm/tools/lld/ELF/Driver.cpp +++ b/gnu/llvm/tools/lld/ELF/Driver.cpp @@ -961,7 +961,7 @@ static void excludeLibs(opt::InputArgList &Args, ArrayRef Files) { if (Optional Archive = getArchiveName(File)) if (All || Libs.count(path::filename(*Archive))) for (Symbol *Sym : File->getSymbols()) - if (!Sym->isLocal()) + if (!Sym->isLocal() && Sym->File == File) Sym->VersionId = VER_NDX_LOCAL; }