From 2946aa69e79cbeffc81f85345b799d8a4648928b Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Thu, 27 Mar 2025 15:59:33 +0800 Subject: [PATCH] 2.37.1 --- ...rious-dupilcate-symbol-error-for-LTO.patch | 51 ------------------- mold-2.37.0.tar.gz => mold-2.37.1.tar.gz | 4 +- mold.spec | 7 +-- 3 files changed, 6 insertions(+), 56 deletions(-) delete mode 100644 backport-Fix-spurious-dupilcate-symbol-error-for-LTO.patch rename mold-2.37.0.tar.gz => mold-2.37.1.tar.gz (32%) diff --git a/backport-Fix-spurious-dupilcate-symbol-error-for-LTO.patch b/backport-Fix-spurious-dupilcate-symbol-error-for-LTO.patch deleted file mode 100644 index b75220a..0000000 --- a/backport-Fix-spurious-dupilcate-symbol-error-for-LTO.patch +++ /dev/null @@ -1,51 +0,0 @@ -From c95476d2fe549a275210a8b3d87ae75d98233140 Mon Sep 17 00:00:00 2001 -From: Rui Ueyama -Date: Fri, 7 Mar 2025 13:17:34 +0900 -Subject: [PATCH] Fix spurious "dupilcate symbol" error for LTO - -Fixes https://github.com/rui314/mold/issues/1421 ---- - src/passes.cc | 3 +++ - test/lto-archive3.sh | 19 +++++++++++++++++++ - 2 files changed, 22 insertions(+) - create mode 100755 test/lto-archive3.sh - -diff --git a/src/passes.cc b/src/passes.cc -index d259cca010..9c3cf4beea 100644 ---- a/src/passes.cc -+++ b/src/passes.cc -@@ -1036,6 +1036,9 @@ void check_duplicate_symbols(Context &ctx) { - Timer t(ctx, "check_duplicate_symbols"); - - tbb::parallel_for_each(ctx.objs, [&](ObjectFile *file) { -+ if (!file->is_reachable) -+ return; -+ - for (i64 i = file->first_global; i < file->elf_syms.size(); i++) { - const ElfSym &esym = file->elf_syms[i]; - Symbol &sym = *file->symbols[i]; -diff --git a/test/lto-archive3.sh b/test/lto-archive3.sh -new file mode 100755 -index 0000000000..09bc3baafc ---- /dev/null -+++ b/test/lto-archive3.sh -@@ -0,0 +1,19 @@ -+#!/bin/bash -+. $(dirname $0)/common.inc -+ -+test_cflags -flto=auto || skip -+ -+cat < - 2.37.1-1 +- update to 2.37.1 + * Thu Mar 06 2025 Funda Wang - 2.37.0-1 - update to 2.37.0 -- Gitee