Mold Linker 3.0.0 Released in Rust, Boosts Safety and Compatibility
· via Hacker News
The mold linker has been rewritten in Rust for version 3.0.0, marking a significant shift from its C++ origins. This release aims to close compatibility gaps with GNU ld, particularly in linker script support, and paves the way for mold to become the default linker in Linux distributions. The transition to Rust enhances safety, especially with corrupted input files, as it now bounds-checks memory reads, preventing crashes. The performance remains on par with the previous C++ version, and extensive testing confirmed no regressions. The build system has also changed, now using Cargo instead of CMake, requiring Rust 1.95 or later and a C compiler.
Read the full article
Continue reading at Hacker News →This is an AI-generated summary. Read the original for the full story.