Index: ELF/Driver.cpp =================================================================== --- ELF/Driver.cpp +++ ELF/Driver.cpp @@ -1159,6 +1159,13 @@ for (Symbol *Sym : File->getSymbols()) if (!Sym->isLocal() && Sym->File == File) Sym->VersionId = VER_NDX_LOCAL; + + for (BitcodeFile *File : BitcodeFiles) + if (!File->ArchiveName.empty()) + if (All || Libs.count(path::filename(File->ArchiveName))) + for (Symbol *Sym : File->getSymbols()) + if (!Sym->isLocal() && Sym->File == File) + Sym->VersionId = VER_NDX_LOCAL; } // Force Sym to be entered in the output. Used for -u or equivalent.