From 5c18e77d80a7306ed84ee968e0453d2e5db5bb65 Mon Sep 17 00:00:00 2001 From: kettenis Date: Tue, 11 Sep 2018 09:25:56 +0000 Subject: [PATCH] Fix --exclude-libs option. Based on code already committed upstream. tested by naddy@ --- gnu/llvm/tools/lld/ELF/Driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1