v1.3.0
版本发布时间: 2022-06-18 12:05:27
rui314/mold最新发布版本:v2.34.0(2024-09-25 13:04:28)
mold 1.3.0 is a new release of the high-speed linker. This release contains a few new features and general stability/compatibility improvements as shown below.
Note for those who create mold binary packages: if you are building mold for binary distribution, please link the bundled libtbb statically (which is default) or rebuild your distro's libtbb package with my patch so that mold's Link-Time Optimization (LTO) works reliably under a heavy load.
Bug fixes and compatibility improvements
- The
--icf=safe
option has been supported. This option enables a feature to find and deduplicate identical code that can be merged safely. For C++ programs, it typically reduces the output binary size by a few percent.--icf=safe
needs to be used with a compiler that supports.llvm_addrsig
section; if a compiler does not support it,--icf=safe
doesn't do any harm but cannot optimize a given program at all. That section is supported by LLVM/Clang at the moment, and we are working on adding it to GCC. (https://github.com/rui314/mold/issues/484, 27908af67dd1b989dedca849aceffc54f1b605f0) - LTO now works reliably under a heavy load. mold used to abort occasionally under such condition on Linux due to a spurious failure of
pthread_create(2)
. (d8a8877875d96d0efdb727b4ba600ee3910a333f) - mold now prints out undefined symbol errors in a format similar to LLVM lld. (13816a14e1df39650e6c3c5826f036102d4bc54a)
- mold now prints out a better error message for the disk full situation. (596926008a4042b94a6901e53236ab1856a29e1a)
- mold can now build GCC 12 with LTO. (708ad63474e38a61ed1d6784636b71e84bd4ae00)
- Fixed an LTO issue on 32-bits hosts such as i686. (920266bce443eae83b78cd947d635ff5aa629d73)
- mold is now AddressSanitizer and UndefinedSanitizer clean. (fafb75b0e5206fa3453fcba883bc42a7f15d50d9, 3499ee6ac7c0fbb25ed47b7a2abfa2dc9638ae44)
- mold used to create broken debug info on 32-bits hosts (https://github.com/rui314/mold/issues/490). The bug has been fixed. (0abd0a40db85ee847ec9606a62fc419c86c738f5)
- mold used to accept not only a single dash but also double dashes for single-letter options. For example,
--S
was accidentally accepted as an alias for-S
. This is unconventional, and such options are no longer accepted. (232dafa8d01f787ac069706de571c1614fcbf9df) -
--color-diagnostics
is now an alias for--color-diagnostics=auto
instead of--color-diagnostics=always
for compatibility with LLVM lld. -
pkg-config
is no longer needed to build mold. - The
--package-metadata
option is supported. (https://github.com/rui314/mold/issues/505, e9f6715c6ef01b5bf02dc8bf36bce8af4f07b44e)
Removed features
- An experimental
--preload
flag has been removed. (a85b1f539a748b6508733c8c5c2cd28da4dfb796)
Acknowledgements
mold is an open-source project, and we accept donations via GitHub Sponsors and OpenCollective. We thank you to everybody 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:
We'd also like to thank HPC Engineering at AWS to donate $5,000 AWS credits to us.
1、 mold-1.3.0-aarch64-linux.tar.gz 3.14MB
2、 mold-1.3.0-x86_64-linux.tar.gz 3.48MB