From 8571ce7c9777979f9bf77100886b8490588c670c Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 17 Jun 2021 15:09:24 +0900 Subject: [PATCH] Fix assertion error This is needed for Gentoo's net-misc/nx-3.5.99.25 package. --- passes.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes.cc b/passes.cc index c86e18e7..02381f59 100644 --- a/passes.cc +++ b/passes.cc @@ -400,7 +400,7 @@ void scan_rels(Context &ctx) { // Add symbol aliases for COPYREL. tbb::parallel_for_each(ctx.dsos, [&](SharedFile *file) { for (Symbol *sym : file->symbols) - if (sym->flags & NEEDS_COPYREL) + if (sym->file == file && (sym->flags & NEEDS_COPYREL)) for (Symbol *alias : file->find_aliases(sym)) alias->flags |= NEEDS_DYNSYM; });