Skip to content

Commit

Permalink
mold: update to 2.2.0.
Browse files Browse the repository at this point in the history
New features:

- We now use BLAKE3 as a cryptographic hash function instead of SHA256.
  This change has made --build-id a few percent faster. libssl is no longer
  a build dependency.
- mold is now a few percent faster than the previous version due to an
  optimization of string merging code path.
- mold now emits slightly optimized code for thread-local variable accesses.
- [RISC-V] mold now supports TLSDESC relocations. TLSDESC is a new mechanism
  for faster thread-local variable access. We (@ishitatsuyuki) actually led
  the effort to ratify the specification (riscv-non-isa/riscv-elf-psabi-doc#373)
  and implement it to compiler toolchain including GCC, GNU binutils and,
  of course, mold.

Bug fixes and compatibility improvements:

- mold no longer marks an as-needed .so as "needed" if the .so file is not
  directly used by the output file. Previously, mold marked a .so file as
  "needed" if the .so file was used by another "needed" .so file.
- [PPC64] --execute-only now works on 64-bit PowerPC.
  • Loading branch information
fcambus committed Sep 28, 2023
1 parent dde7ab1 commit fd7acf2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions devel/mold/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.35 2023/08/28 15:09:33 fcambus Exp $
# $NetBSD: Makefile,v 1.36 2023/09/28 14:47:59 fcambus Exp $

DISTNAME= mold-2.1.0
DISTNAME= mold-2.2.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=rui314/}
GITHUB_TAG= v${PKGVERSION_NOREV}
Expand Down Expand Up @@ -36,7 +36,6 @@ PTHREAD_AUTO_VARS= yes
.include "../../devel/mimalloc/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../parallel/threadingbuildingblocks/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
10 changes: 5 additions & 5 deletions devel/mold/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.29 2023/08/15 17:32:22 fcambus Exp $
$NetBSD: distinfo,v 1.30 2023/09/28 14:47:59 fcambus Exp $

BLAKE2s (mold-2.1.0.tar.gz) = 11ec1d69ed3301358c9dc2eb3204b60f0416ef62bdc27a2407046bc831267aea
SHA512 (mold-2.1.0.tar.gz) = f1c98d349b35b4042109d71f7db6eb8d7d089dc3241735bbd7b5402d513dcc85ca17904828779e5fc8234650fa9fb97f47c3a2f3e89cc2fb3cb9e9110439e5a2
Size (mold-2.1.0.tar.gz) = 9278811 bytes
SHA1 (patch-CMakeLists.txt) = f9c305fa3771273c48f6172b0bc5a66a636a1d16
BLAKE2s (mold-2.2.0.tar.gz) = a879b13d19fe67046fcfa5bec585b0fb4bd27e81b868a0b056fa1baf1bb87b2b
SHA512 (mold-2.2.0.tar.gz) = 1692d1ff154335fdff91a4fafebb3514ed6742035c14e74ec7e552b90428a1cd5341baba9183158b44ae221fd19e86da55e7f04bde317b943a24d0afecb41002
Size (mold-2.2.0.tar.gz) = 9956678 bytes
SHA1 (patch-CMakeLists.txt) = 2737ab2e9a3d3e82a8c825878ec6873bb825f0b2
6 changes: 3 additions & 3 deletions devel/mold/patches/patch-CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
$NetBSD: patch-CMakeLists.txt,v 1.3 2023/07/27 12:39:20 fcambus Exp $
$NetBSD: patch-CMakeLists.txt,v 1.4 2023/09/28 14:47:59 fcambus Exp $

Disable precompiled headers.

cc1plus: warning: cmake_pch.hxx.gch: had text segment at different address

--- CMakeLists.txt.orig 2023-07-26 10:40:11.000000000 +0000
--- CMakeLists.txt.orig 2023-09-24 03:28:19.000000000 +0000
+++ CMakeLists.txt
@@ -394,9 +394,6 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUA
@@ -402,9 +402,6 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUA
target_precompile_headers(mold PRIVATE
"$<$<COMPILE_LANGUAGE:CXX>:${CMAKE_SOURCE_DIR}/elf/mold.h>"
"$<$<COMPILE_LANGUAGE:CXX>:${CMAKE_SOURCE_DIR}/macho/mold.h>")
Expand Down

0 comments on commit fd7acf2

Please sign in to comment.