pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/mold mold: update to 1.5.0.
details: https://anonhg.NetBSD.org/pkgsrc/rev/b34719a1d242
branches: trunk
changeset: 385983:b34719a1d242
user: fcambus <fcambus%pkgsrc.org@localhost>
date: Thu Sep 29 15:21:41 2022 +0000
description:
mold: update to 1.5.0.
mold 1.5.0 is a new release of the high-speed linker. The highlight of this
release is that we start supporting the following four new targets: PPC64LE,
SPARC64, RV32BE and RV64BE. mold 1.5.0 also includes various bug fixes,
performance and compatibility improvements as shown below.
New features:
- PPC64LE and SPARC64 are now supported as new targets. They haven't yet
been as well tested as other targets, but they are already able to link
mold itself on these platforms. (Note that PPC64LE is very unlikely to
work on the most recent POWER10 machines as we didn't have a chance to
test it due to a limited availability (POWER10 was released in 2021). If
you can support us on this matter, please contact us. We also accept
donations, so please consider supporting our project!)
- RV32BE and RV64BE (32-bit and 64-bit big-endian RISC-V) are now supported
as experimental targets. RISC-V is usually little-endian, but there exists
a big-endian RISC-V as an extension. You can make gcc to emit code for
big-endian RISC-V by passing -mbig-endian. mold can now link object files
generated with that option.
- --compress-debug-sections=zstd is now supported. This is an option to
compress debug info embedded to an output file with Zstandard compression
algorithm. Compared to the existing --compress-debug-sections=zlib, zstd
is faster and gives a higher compression ratio. You probably can't start
using zstd compression today though, because other tools such as gdb may
not be able to read zstd-compressed debug info yet. But adding this option
early makes mold future-proof.
- mold no longer aligns loadable segments to page boundaries to reduce output
file size. Previously, we allocated holes between loadable segments. The
saving by this change is most visible for small programs. For example, a
"hello world" program used to be ~18 KiB on x86-64. It's now 7.2 KiB.
Bug fixes and compatibility improvements:
- [RISCV] We optimized code so that the link speed for RISC-V is now
comparable to the other targets. As an example, linking mold itself (~150
MiB in size) for RV64 used to take ~45 seconds on a simulated 16-core
machine. It now takes only ~0.25 seconds.
- mold used to create more than one .rodata section under a certain
condition. It's not technically wrong but confused Valgrind. This issue
has been resolved.
- [ARM32] Previously, mold failed to promote remaining undefined symbols to
dynamic symbols if symbols are undefined weak. That caused a link failure
for libxml. This issue has been resolved.
- mold didn't copy symbol types when creating symbol aliases for the --defsym
option.
Removed features:
- --compress-debug-sections=zlib-gnu has been removed. LLVM lld removed that
option too as there seems to be no usage of the flag.
diffstat:
devel/mold/Makefile | 5 ++---
devel/mold/distinfo | 8 ++++----
2 files changed, 6 insertions(+), 7 deletions(-)
diffs (26 lines):
diff -r 663d6c9baa1e -r b34719a1d242 devel/mold/Makefile
--- a/devel/mold/Makefile Thu Sep 29 15:03:30 2022 +0000
+++ b/devel/mold/Makefile Thu Sep 29 15:21:41 2022 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.22 2022/09/10 15:44:29 fcambus Exp $
+# $NetBSD: Makefile,v 1.23 2022/09/29 15:21:41 fcambus Exp $
-DISTNAME= mold-1.4.2
-PKGREVISION= 1
+DISTNAME= mold-1.5.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=rui314/}
GITHUB_TAG= v${PKGVERSION_NOREV}
diff -r 663d6c9baa1e -r b34719a1d242 devel/mold/distinfo
--- a/devel/mold/distinfo Thu Sep 29 15:03:30 2022 +0000
+++ b/devel/mold/distinfo Thu Sep 29 15:21:41 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.20 2022/09/10 15:44:29 fcambus Exp $
+$NetBSD: distinfo,v 1.21 2022/09/29 15:21:41 fcambus Exp $
-BLAKE2s (mold-1.4.2.tar.gz) = b3503211ccdad1117cfa5092a16687ac9690769df6d9c66095a2a69a02887dfb
-SHA512 (mold-1.4.2.tar.gz) = 17f543969e53737818b0be563aee39feac672f93e0fd712827523232b64eccb4629f3994c5a90de50b5f761886669e0946a8d463663725e774eb7d352de1ced1
-Size (mold-1.4.2.tar.gz) = 6287845 bytes
+BLAKE2s (mold-1.5.0.tar.gz) = 53ce644511e57eda6b29c1bdff14913f5e225a638d7e34812a578206a86fa32e
+SHA512 (mold-1.5.0.tar.gz) = e750ffd23604a33e174444f8f303fa25d13de4ca07585bf000948d2ed7190c925646ec2ad06bfac50f3c504dab83e1bdfa288deb6dd8248a85f8d793210938c3
+Size (mold-1.5.0.tar.gz) = 8256474 bytes
Home |
Main Index |
Thread Index |
Old Index