v2.31.0
版本发布时间: 2024-05-03 13:27:35
rui314/mold最新发布版本:v2.34.0(2024-09-25 13:04:28)
mold 2.31.0 is a new release of the high-speed linker. It includes the following new features and bug fixes:
New features
- mold is now up to 10% faster when linking very large, debug info-enabled executables such as Blender (~1.8 GiB) or Clang (~3.8 GiB), thanks to several improvements we've made to the string merging algorithm. (53ebcd80d888778cde16952270f73343f090f342, d71430118061ca2c8898f738f7f99ff5a7fb2cf5, 40f6b17edae892d717bd3a9fd75b25fcb2ee2268, c9faf3d34562d010b9e430ff3fec466c11db295e)
-
-z start-stop-visibility=hidden
is now supported so that linker-synthesized__start_<section-name>
and__stop_<section-name>
symbols can be completely hidden from other ELF modules. Previously, only-z start-stop-visibility=protected
was supported. (99a5b1541eb1b553cfda53c7f6590a79cbca0b11) -
-Bsymbolic-non-weak
and-Bsymbolic-non-weak-functions
options are now supported for compatibility with LLVM lld. Just like lld, these options control which symbols are exported as dynamic symbols.-Bsymbolic-non-weak
makes the linker to export only weak symbols, whereas-Bsymbolic-non-weak-functions
makes it to export only weak function symbols. (7d17aa83ebeabeea1626fd21d94774993b5692b3)
Bug fixes and compatibility improvements
- Previously, if a linker script contains a newline character in the beginning four bytes of a file, it was not recognized as a linker script by mold. Now, mold allows newlines at the beginning of a file. (ea054ccced2dce076fb468bc64bca969b3d8d056)
- Under rare circumstances, the
INPUT
linker script command may have found a different file than GNU ld would. Now, mold's behavior aligns with GNU ld's. (163975d82ad73968c56f8da0372b4ea1645f2bff) - Previously, the
--repro
option produced corrupted tar files. Now the bug has been fixed. (32c4a09debae11f5cb18434dc4c9ae35031c61b2) - mold generally guarantees that its output is reproducible, meaning that if you run the linker with the exact same command line options and input files, the output is guaranteed to be bit-for-bit identical to the previous outputs. However, under rare circumstances, it might produce different output due to a bug. It's reported that this nondeterminism caused random crashes for some programs (https://github.com/rui314/mold/issues/1247). This bug has been fixed. (6463a7c48ab3d355be6a99e4f7e177bf959da398)
- mold no longer sets the address of the
.text
section as the entry point address if--entry
option is not given, just like LLVM lld. (020b1a78d9704ad8deca5cd5d63b0fe37f3e4162) - [RISC-V]
__global_pointer$
symbol is now exported from executables as required by the processor-specific ABI. (3df7c8e89c507865abe0fad4ff5355f4d328f78d) - [ARM32]
--long-plt
option is now recognized as known option by mold. mold ignores the option, though, because the PLTs generated by our linker is always long. (d432e987a019ba213a21cfed89b01ba9041e1a2c)
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:
- Cybozu, Inc.
- Signal Slot Inc.
- Mercury
- G-Research-OSS
- Jinkyu Yi
- kraptor23
- a_p_u_r_o
- Rodrigo Salazar
- Wei Wu
- daquexian
- Matt Godbolt
- Dougall Johnson
- CubeSoft, Inc.
- Josh Triplett
- Robey Pointer
- nomeaning
- David Wells
- Foxie Solutions
- Yihao Ke
- darkdragon-001
- Nazar Mokrynskyi
- Martin Liška
- Richard Zak
- Igor Matuszewski
- Santiago Pastorino
- Hunter Kvalevog
1、 mold-2.31.0-aarch64-linux.tar.gz 7.91MB
2、 mold-2.31.0-arm-linux.tar.gz 7.65MB
3、 mold-2.31.0-ppc64le-linux.tar.gz 9.99MB
4、 mold-2.31.0-riscv64-linux.tar.gz 9.36MB
5、 mold-2.31.0-s390x-linux.tar.gz 8.82MB
6、 mold-2.31.0-x86_64-linux.tar.gz 7.99MB