v2.4.1
版本发布时间: 2024-03-01 14:03:56
rui314/mold最新发布版本:v2.34.0(2024-09-25 13:04:28)
mold 2.4.1 is a maintenance release of the high-speed linker. It contains the following minor bug fixes.
- mold 2.4.0 or prior may promote weak dynamic symbols to strong ones under a rare circumstance, which caused "undefined symbol" error at runtime. The bug has been fixed. (https://github.com/rui314/mold/commit/50bdf39ba57e29386de28bd0c303035e626fa29c)
- Previously, if two or more VERSION clauses in a version script match to the same symbol, the first one took precedence. This was incompatible with GNU ld, which gives the last one the highest priority, causing a Qt library link failure. This compatibility issue has been resolved. (e1e16bf85a47b1e85944ca7fdbae858fddfe5e2e)
- By default, we demangle symbols in error messages so that they are easier to read. Previously, Rust symbols could accidentally be demangled as C++ symbols. Now, mold attempts to demangle symbols as Rust ones only for object files created by
rustc
. (ea9864bbd5da9cec3a2867d9ecd0754fb1b5c5d6) - [RISC-V] mold now relaxes a GOT-load instruction sequence into a direct address materialization if the symbol address is known at link time. This relaxation eliminates one memory load and slightly improves the linked program's performance. (2ccaa81aaba64dfb7f9287bb960a0264b58d34e5)
- [PowerPC64 ELFv2] GCC may emit references to
_savegpr0_*
,_restgpr0_*
,_savegpr1_*
and_restgpr1_*
symbols for the-Os
command line option to optimize the output for code size. These symbols are not defined by any object file and expected to be synthesized by the linker. mold didn't use to synthesize these symbols, and therefore object files created with-Os
sometimes failed due to missing symbol errors. Now, mold synthesizes these symbols. (d4ff48a07e554098755848ea8ee43f40a420ea87) - [PowerPC64]
R_PPC64_DTPREL16_LO_DS
relocation type has now been supported. (6d8e6afbf208e4aedda88fc44c9755e997f8ac91) - [Illumos] On Illumos OS, absolute symbols in DSOs need to be resolved at runtime because the dynamic linker treats such symbols in a special manner. Previously, mold directly used absolute symbol addresses at link-time and did not place them into the dynamic symbol table. That optimization has been removed for compatibility with Illumos. (bed5b1731b7d94fe5655da3cdc7d87eab239eb4a, 7f8d77d84e7cfa725cd36fc6dc93da739461307f)
Acknowledgements
mold is an open-source project, and we accept donations via GitHub Sponsors and OpenCollective. We thank everyone who sponsors our project. In particular, we'd like to acknowledge the following organizations and people who have sponsored $32/mo or more during this release cycle:
1、 mold-2.4.1-aarch64-linux.tar.gz 7.96MB
2、 mold-2.4.1-arm-linux.tar.gz 7.49MB
3、 mold-2.4.1-ppc64le-linux.tar.gz 9.84MB
4、 mold-2.4.1-riscv64-linux.tar.gz 9.13MB
5、 mold-2.4.1-s390x-linux.tar.gz 8.57MB
6、 mold-2.4.1-x86_64-linux.tar.gz 7.95MB