Bump version to 1.2
This commit is contained in:
parent
f7d33825f2
commit
25ba545e0c
|
@ -1,3 +1 @@
|
|||
/mold-1.0.2.tar.gz
|
||||
/mold-1.1.tar.gz
|
||||
/mold-1.1.1.tar.gz
|
||||
/mold-1.2.tar.gz
|
||||
|
|
|
@ -1,89 +0,0 @@
|
|||
From 91c4af8e43ad2bf030d8f0d62594e7d2352a04c4 Mon Sep 17 00:00:00 2001
|
||||
Message-Id: <91c4af8e43ad2bf030d8f0d62594e7d2352a04c4.1646773590.git.github@sicherha.de>
|
||||
From: Christoph Erhardt <github@sicherha.de>
|
||||
Date: Tue, 8 Mar 2022 19:05:50 +0100
|
||||
Subject: [PATCH] Skip failing tests on aarch64
|
||||
|
||||
Upstream issues:
|
||||
* https://github.com/rui314/mold/issues/382
|
||||
* https://github.com/rui314/mold/issues/383
|
||||
* https://github.com/rui314/mold/issues/384
|
||||
---
|
||||
test/elf/hello-static-pie.sh | 3 +++
|
||||
test/elf/ifunc-static-pie.sh | 3 +++
|
||||
test/elf/noinhibit-exec.sh | 3 +++
|
||||
test/elf/tls-gd-mcmodel-large.sh | 2 --
|
||||
test/elf/tls-ld-mcmodel-large.sh | 2 --
|
||||
5 files changed, 9 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/test/elf/hello-static-pie.sh b/test/elf/hello-static-pie.sh
|
||||
index 18700913..f0b7ae3d 100755
|
||||
--- a/test/elf/hello-static-pie.sh
|
||||
+++ b/test/elf/hello-static-pie.sh
|
||||
@@ -10,6 +10,9 @@ mold="$(pwd)/mold"
|
||||
t=out/test/elf/$testname
|
||||
mkdir -p $t
|
||||
|
||||
+# Output binary segfaults on aarch64
|
||||
+[ "$(uname -m)" = aarch64 ] && { echo skipped; exit; }
|
||||
+
|
||||
# IFUNC is not supported on RISC-V yet
|
||||
[ "$(uname -m)" = riscv64 ] && { echo skipped; exit; }
|
||||
|
||||
diff --git a/test/elf/ifunc-static-pie.sh b/test/elf/ifunc-static-pie.sh
|
||||
index 53a1c919..98cb3e6e 100755
|
||||
--- a/test/elf/ifunc-static-pie.sh
|
||||
+++ b/test/elf/ifunc-static-pie.sh
|
||||
@@ -10,6 +10,9 @@ mold="$(pwd)/mold"
|
||||
t=out/test/elf/$testname
|
||||
mkdir -p $t
|
||||
|
||||
+# Output binary segfaults on aarch64
|
||||
+[ "$(uname -m)" = aarch64 ] && { echo skipped; exit; }
|
||||
+
|
||||
# IFUNC is not supported on RISC-V yet
|
||||
[ "$(uname -m)" = riscv64 ] && { echo skipped; exit; }
|
||||
|
||||
diff --git a/test/elf/noinhibit-exec.sh b/test/elf/noinhibit-exec.sh
|
||||
index 44a26e54..6c90d82f 100755
|
||||
--- a/test/elf/noinhibit-exec.sh
|
||||
+++ b/test/elf/noinhibit-exec.sh
|
||||
@@ -10,6 +10,9 @@ mold="$(pwd)/mold"
|
||||
t=out/test/elf/$testname
|
||||
mkdir -p $t
|
||||
|
||||
+# `mold -noinhibit-exec` segfaults on aarch64
|
||||
+[ "$(uname -m)" = aarch64 ] && { echo skipped; exit; }
|
||||
+
|
||||
cat <<EOF | $CC -o $t/a.o -c -xc -
|
||||
void foo();
|
||||
int main() { foo(); }
|
||||
diff --git a/test/elf/tls-gd-mcmodel-large.sh b/test/elf/tls-gd-mcmodel-large.sh
|
||||
index 9b518eea..09c591eb 100755
|
||||
--- a/test/elf/tls-gd-mcmodel-large.sh
|
||||
+++ b/test/elf/tls-gd-mcmodel-large.sh
|
||||
@@ -12,8 +12,6 @@ mkdir -p $t
|
||||
|
||||
if [ "$(uname -m)" = x86_64 ]; then
|
||||
dialect=gnu
|
||||
-elif [ "$(uname -m)" = aarch64 ]; then
|
||||
- dialect=trad
|
||||
else
|
||||
echo skipped
|
||||
exit 0
|
||||
diff --git a/test/elf/tls-ld-mcmodel-large.sh b/test/elf/tls-ld-mcmodel-large.sh
|
||||
index ea5a5d41..79a72665 100755
|
||||
--- a/test/elf/tls-ld-mcmodel-large.sh
|
||||
+++ b/test/elf/tls-ld-mcmodel-large.sh
|
||||
@@ -12,8 +12,6 @@ mkdir -p $t
|
||||
|
||||
if [ "$(uname -m)" = x86_64 ]; then
|
||||
dialect=gnu
|
||||
-elif [ "$(uname -m)" = aarch64 ]; then
|
||||
- dialect=trad
|
||||
else
|
||||
echo skipped
|
||||
exit 0
|
||||
--
|
||||
2.35.1
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
From 133946af0c4013d17715cad486a1984848732a4d Mon Sep 17 00:00:00 2001
|
||||
Message-Id: <133946af0c4013d17715cad486a1984848732a4d.1650116695.git.github@sicherha.de>
|
||||
From: Christoph Erhardt <github@sicherha.de>
|
||||
Date: Fri, 15 Apr 2022 20:34:04 +0200
|
||||
Subject: [PATCH] Skip test if `dwarfdump` is unavailable
|
||||
|
||||
Fixes #430.
|
||||
|
||||
Signed-off-by: Christoph Erhardt <github@sicherha.de>
|
||||
---
|
||||
test/elf/dead-debug-sections.sh | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/test/elf/dead-debug-sections.sh b/test/elf/dead-debug-sections.sh
|
||||
index 5573b3a2..b31fcb34 100755
|
||||
--- a/test/elf/dead-debug-sections.sh
|
||||
+++ b/test/elf/dead-debug-sections.sh
|
||||
@@ -14,6 +14,8 @@ mold="$(pwd)/mold"
|
||||
t=out/test/elf/$testname
|
||||
mkdir -p $t
|
||||
|
||||
+which dwarfdump >& /dev/null || { echo skipped; exit; }
|
||||
+
|
||||
cat <<EOF | $CXX -c -o $t/a.o -g -xc++ -
|
||||
#include <iostream>
|
||||
struct Foo {
|
||||
--
|
||||
2.35.1
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
From a20e3b8004c30e9edaeafaccb194ff077c3da98f Mon Sep 17 00:00:00 2001
|
||||
Message-Id: <a20e3b8004c30e9edaeafaccb194ff077c3da98f.1646731932.git.github@sicherha.de>
|
||||
From: Christoph Erhardt <github@sicherha.de>
|
||||
Date: Tue, 8 Mar 2022 10:13:49 +0100
|
||||
Subject: [PATCH] Increase required glibc version for `-static-pie` tests
|
||||
|
||||
mold 1.1.1 generates `-static-pie` code that works with glibc 2.35 but
|
||||
segfaults with glibc 2.34 or older.
|
||||
|
||||
Signed-off-by: Christoph Erhardt <github@sicherha.de>
|
||||
---
|
||||
test/elf/hello-static-pie.sh | 2 +-
|
||||
test/elf/ifunc-static-pie.sh | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/test/elf/hello-static-pie.sh b/test/elf/hello-static-pie.sh
|
||||
index 4b72d1c3..18700913 100755
|
||||
--- a/test/elf/hello-static-pie.sh
|
||||
+++ b/test/elf/hello-static-pie.sh
|
||||
@@ -18,7 +18,7 @@ echo 'int main() {}' | $CC -o $t/exe -xc -
|
||||
ldd $t/exe | grep -q ld-musl && { echo OK; exit; }
|
||||
|
||||
# -static-pie works only with a newer version of glibc
|
||||
-ldd --version | grep -Pq 'Copyright \(C\) 202[1-9]' || { echo skipped; exit; }
|
||||
+ldd --version | grep -Pq 'Copyright \(C\) 202[2-9]' || { echo skipped; exit; }
|
||||
|
||||
cat <<EOF | $CC -o $t/a.o -c -xc - -fPIE
|
||||
#include <stdio.h>
|
||||
diff --git a/test/elf/ifunc-static-pie.sh b/test/elf/ifunc-static-pie.sh
|
||||
index a8d8785b..53a1c919 100755
|
||||
--- a/test/elf/ifunc-static-pie.sh
|
||||
+++ b/test/elf/ifunc-static-pie.sh
|
||||
@@ -18,7 +18,7 @@ echo 'int main() {}' | $CC -o $t/exe -xc -
|
||||
ldd $t/exe | grep -q ld-musl && { echo OK; exit; }
|
||||
|
||||
# -static-pie works only with a newer version of glibc
|
||||
-ldd --version | grep -Pq 'Copyright \(C\) 202[1-9]' || { echo skipped; exit; }
|
||||
+ldd --version | grep -Pq 'Copyright \(C\) 202[2-9]' || { echo skipped; exit; }
|
||||
|
||||
cat <<EOF | $CC -o $t/a.o -c -xc - -fPIC
|
||||
#include <stdio.h>
|
||||
--
|
||||
2.35.1
|
||||
|
20
mold.spec
20
mold.spec
|
@ -1,5 +1,5 @@
|
|||
Name: mold
|
||||
Version: 1.1.1
|
||||
Version: 1.2
|
||||
Release: 1%{?dist}
|
||||
Summary: A Modern Linker
|
||||
|
||||
|
@ -14,17 +14,15 @@ Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|||
# in the Fedora tbb package)
|
||||
Patch0: tbb-strip-werror.patch
|
||||
|
||||
# Skip failing tests on aarch64
|
||||
Patch1: 0001-Skip-failing-tests-on-aarch64.patch
|
||||
# Skip test if dwarfdump is unavailable
|
||||
Patch1: 0001-Skip-test-if-dwarfdump-is-unavailable.patch
|
||||
|
||||
# Fix mimalloc compatibility with libstdc++ < 9:
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68210
|
||||
Patch2: 0002-Fix-compatibility-with-libstdc-9.patch
|
||||
|
||||
# Disable `-static-pie` tests for systems with glibc < 2.35
|
||||
Patch3: 0003-Increase-required-glibc-version-for-static-pie-tests.patch
|
||||
|
||||
# mold can currently produce native binaries for x86, aarch64 and riscv64 only
|
||||
# mold can produce native binaries for i686, x86_64, ARMv7, aarch64 and riscv64,
|
||||
# but it only runs on a 64-bit host
|
||||
ExclusiveArch: x86_64 aarch64 riscv64
|
||||
|
||||
BuildRequires: cmake
|
||||
|
@ -70,6 +68,8 @@ build time, especially in rapid debug-edit-rebuild cycles.
|
|||
%prep
|
||||
%autosetup -p1
|
||||
rm -r third-party/{mimalloc,xxhash}
|
||||
# Remove failing unit test for now (https://github.com/rui314/mold/issues/436)
|
||||
rm test/elf/gdb-index.sh
|
||||
|
||||
%build
|
||||
%if 0%{?el8}
|
||||
|
@ -112,6 +112,12 @@ fi
|
|||
%{_mandir}/man1/mold.1*
|
||||
|
||||
%changelog
|
||||
* Sat Apr 16 2022 Christoph Erhardt <fedora@sicherha.de> - 1.2-1
|
||||
- Bump version to 1.2
|
||||
- Drop upstreamed patches
|
||||
- Set correct version of bundled tbb
|
||||
- Suppress 'comparison between signed and unsigned' warnings
|
||||
|
||||
* Tue Mar 08 2022 Christoph Erhardt <fedora@sicherha.de> - 1.1.1-1
|
||||
- Bump version to 1.1.1
|
||||
|
||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
SHA512 (mold-1.1.1.tar.gz) = 981d9737ed7a23134b9bafc04db0cd0233ab4fd588a3b250688dba64936fe84f6736168379fc3e4485273bcef11bca70e5c426b043b5d8b9775ae1cd3aea5b52
|
||||
SHA512 (mold-1.2.tar.gz) = 1308f5f274867a5d2d2c000a043ce645eff2a0c876fc1bec33c077cd7f5fc0f1f2b983211ca479cebc80f1ed3f3b0ea0d4c8f7e3e7f2124b713354b18ebc8676
|
||||
|
|
Loading…
Reference in New Issue