Urgent.News

What's breaking now, across thousands of outlets.

Tech

Mold Linker Version 3.0.0 Release – Rewritten in Rust

Article URL: https://github.com/rui314/mold/releases/tag/v3.0.0 Comments URL: https://news.ycombinator.com/item?id=49963385 Points: 196 # Comments: 102

Version 3.0.0 of the high-speed linker, mold, has been released in Rust. This marks the first release of the Rust version, following the C++ version's 2.42.1. The primary goal is to close compatibility gaps with GNU ld, especially in linker script support, and to make mold the default linker in Linux distributions. The new release accepts the same command-line options, supports the same target architectures, and produces the same output as 2.42.1, with bug fixes.

The move to Rust enhances mold's safety, preventing crashes caused by corrupted input files. When building mold from source, note that the build system has changed from CMake to Cargo, requiring Rust 1.95 or later and a C compiler. Install mold using cargo build --release and ./install-mold.sh, setting the MOLD_LIBDIR environment variable if the libraries are installed in a directory other than $PREFIX/lib.

The release includes numerous bug fixes, including crashes when creating statically-linked executables with version scripts, handling GOT-relative relocations, and errors for invalid arguments.

Written by urgent.news from Hacker News Best's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Every outlet that reported this, and when →

Read the original at github.com →

More in Tech

More from Monday 5 October →