mold 2.34.0
mold 2.34.0 is a new release of the high-speed linker. It includes the following new features and bug fixes.
New features
- [ARM32] mold now deduplicates exception handling records in a
.ARM.exidx
section to reduce the size of the table. (742ea87) - [LoongArch] TLSDESC relocations are now supported. (dbaa6d7)
Bug fixes and compatibility improvements
--build-id=fast
is now supported for compatibility with LLVM lld. mold handles it as a synonym for--build-id=sha256
. (afc52ee)- Previously, if the same symbol was provided both by a static archive and dynamic library, and if the symbol's visibility was hidden, mold sometimes failed to link it and handled the symbol as if it were undefined. Now, mold can correctly link such programs. (1efbe3f)
- Under rare circumstances, mold could create corrupted binaries if they were linked with
--retain-symbols-file
. This bug has been fixed. (0ee12e4) - [LoongArch]
R_LARCH_CALL36
relocation with a large offset is now correctly written. (1c32102) - [FreeBSD] If all thread-local variables in a program have no initial values, mold-produced executables could crash or misbehave on FreeBSD. This bug has been fixed. (f6822fb)
Dropped features
- DEC Alpha support has been removed due to lack of demand. In fact, mold's Alpha support has never been tested for real-world programs and was likely unable to link them in the first place. This should not affect anyone because the last Alpha processor was released more than 20 years ago. (3711ddb)
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: