From 90312fc858eca9ac86eb98d99358fbbe256c2d8e76e954e547e38fb86a6a284a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Fri, 6 Jan 2023 09:41:27 +0000 Subject: [PATCH 1/2] - Update to version 1.9.0 * mold gained support for the three new targets: 32-bit PowerPC, SH-4 and DEC Alpha. Each porting work didn't take more than a few days for us to complete, which demonstrate how portable the mold linker is. You can typically port mold to a new target just by writing a few hundreds lines of target-specific code. See arch-*.cc files in mold/elf/ directory to see how target-specific code actually looks like. (651adad, 3411e17, 6231510) * Bug fixes and compatibility improvements * In a rare occasion, a statically-initialized function pointer might get a wrong address in a statically-linked executable. This bug has been fixed. (ccd47db) * Fixed a -gdb-index option's crash bug on big-endian hosts. (3c96828) * [RISC-V] mold rewrote machine instructions in a wrong way as a result of a wrong R_RISCV_HI20 relaxation if the output file was being linked against the high address. It's not a problem for user-land programs, but kernels linked with mold could crash due to this bug. This bug has been fixed. (3c96828) OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/mold?expand=0&rev=82 --- mold-1.8.0.tar.gz | 3 --- mold-1.9.0.tar.gz | 3 +++ mold.changes | 19 +++++++++++++++++++ mold.spec | 4 ++-- 4 files changed, 24 insertions(+), 5 deletions(-) delete mode 100644 mold-1.8.0.tar.gz create mode 100644 mold-1.9.0.tar.gz diff --git a/mold-1.8.0.tar.gz b/mold-1.8.0.tar.gz deleted file mode 100644 index 410f9c4..0000000 --- a/mold-1.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7210225478796c2528aae30320232a5a3b93a640292575a8c55aa2b140041b5c -size 8155820 diff --git a/mold-1.9.0.tar.gz b/mold-1.9.0.tar.gz new file mode 100644 index 0000000..891f382 --- /dev/null +++ b/mold-1.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:faf381ba268e714bec7f872de0dd6ea9187ae20b4e12c434a67ac92854701280 +size 8163212 diff --git a/mold.changes b/mold.changes index 51521e2..50a0e81 100644 --- a/mold.changes +++ b/mold.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Fri Jan 6 09:38:06 UTC 2023 - Martin Liška + +- Update to version 1.9.0 + * mold gained support for the three new targets: 32-bit PowerPC, SH-4 and DEC + Alpha. Each porting work didn't take more than a few days for us to complete, + which demonstrate how portable the mold linker is. You can typically port mold + to a new target just by writing a few hundreds lines of target-specific code. + See arch-*.cc files in mold/elf/ directory to see how target-specific code + actually looks like. (651adad, 3411e17, 6231510) + * Bug fixes and compatibility improvements + * In a rare occasion, a statically-initialized function pointer might get a wrong + address in a statically-linked executable. This bug has been fixed. (ccd47db) + * Fixed a -gdb-index option's crash bug on big-endian hosts. (3c96828) + * [RISC-V] mold rewrote machine instructions in a wrong way as a result of a wrong + R_RISCV_HI20 relaxation if the output file was being linked against the high + address. It's not a problem for user-land programs, but kernels linked with mold + could crash due to this bug. This bug has been fixed. (3c96828) + ------------------------------------------------------------------- Tue Dec 27 09:47:12 UTC 2022 - Martin Liška diff --git a/mold.spec b/mold.spec index b98665d..c64fcea 100644 --- a/mold.spec +++ b/mold.spec @@ -1,7 +1,7 @@ # # spec file for package mold # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: mold -Version: 1.8.0 +Version: 1.9.0 Release: 0 Summary: A Modern Linker (mold) License: AGPL-3.0-or-later From 1b2c0931059c09e49118ec801429a76b03cba5a74b74fa5ead7e285871cd9fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Fri, 6 Jan 2023 14:23:22 +0000 Subject: [PATCH 2/2] Accepting request 1056378 from home:glaubitz:branches:devel:tools:compiler - Enable build on ppc now that the target is supported upstream OBS-URL: https://build.opensuse.org/request/show/1056378 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/mold?expand=0&rev=83 --- mold.changes | 5 +++++ mold.spec | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mold.changes b/mold.changes index 50a0e81..67cd70a 100644 --- a/mold.changes +++ b/mold.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 6 11:38:43 UTC 2023 - John Paul Adrian Glaubitz + +- Enable build on ppc now that the target is supported upstream + ------------------------------------------------------------------- Fri Jan 6 09:38:06 UTC 2023 - Martin Liška diff --git a/mold.spec b/mold.spec index c64fcea..497d4c0 100644 --- a/mold.spec +++ b/mold.spec @@ -49,7 +49,6 @@ BuildRequires: valgrind BuildRequires: zlib-devel BuildRequires: zstd PreReq: update-alternatives -ExcludeArch: ppc %if %{suse_version} < 1550 %define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF