+3
Daily
+28
Weekly
+100
Monthly
17,753
stars
587
forks
108
watchers
595
prs
1,101
issues
67
releases
README
mold: A Modern Linker mold is a high-performance drop-in replacement for existing Unix linkers, designed to speed up builds. In our August 2026 benchmarks, it links 4.9x faster than LLVM lld and 1.9x faster than wild at the median; see Benchmark for the full results. mold is written by the original developer of LLVM lld, the linker that Android, Chrome, FreeBSD, PlayStation, Nintendo Switch, and other production systems are built with. mold started as an effort to build an even faster linker from scratch, free of the architectural limits its author had run into while optimizing lld. It has been in production use since 2021, and today it is the default linker of many large open-source projects and is used internally by many companies. mold supports x86-64, i386, ARM 32/64, RISC-V 32/64, PowerPC 32/64, s390x, LoongArch 32/64, SPARC64, m68k, and SH-4. Why does linking speed matter? If you are using a compiled language such as C, C++, or Rust, a build consists of two phases. In the first phase, a compiler compiles source files into object files (.o files). In the second phase, a linker takes all object files and combines them into a single executable or shared library file. The second phase can be time-consuming if your build output is large. mold can speed up this process, saving you time and preventing distractions while waiting for a lengthy build to finish. The difference is most noticeable during rapid debug-edit-rebuild cycles. Benchmark Here is a performance comparison of lld, wild, and mold when linking nine large programs on two machines: - AMD Ryzen Threadripper 7980X (64 cores) running Ubuntu 24.04 - Apple M1 Ultra (16 performance cores and 4 efficiency cores) running Fedora Asahi Remix 42; the benchmark is restricted to the performance cores The Threadripper represents many-core workstation and server processors, and the M1 Ultra represents high-performance desktop processors. All three linkers were built from source in release configuration as of 2026-08-28 and ran with their default options. Times are wall-clock times as seen by the caller, the median of three runs after a warm-up. The ARM64 rows are the ARM64 builds of the same programs. The benchmark suite, including all linker inputs, is available on Zenodo. AMD Ryzen Threadripper 7980X, debug builds | Program (output size) | lld | wild | mold | wild/mold | lld/mold |-----------------------------------|--------|-------|-------|-----------|--------- | Blender 5.2 (2.46 GiB) | 4.72s | 1.98s | 0.86s | 2.3x | 5.5x | Chromium 145 (4.51 GiB) | 16.64s | 3.98s | 1.65s | 2.4x | 10.1x | Chromium 145 ARM64 (4.76 GiB) | 20.91s | N/A | 1.83s | N/A | 11.4x | Clang 21 (4.19 GiB) | 6.19s | 3.71s | 1.34s | 2.8x | 4.6x | ClickHouse 26.1 (5.58 GiB) | 6.62s | 4.40s | 0.98s | 4.5x | 6.7x | Firefox 149 (2.37 GiB) | 5.11s | N/A | 0.78s | N/A | 6.5x | Firefox 149 ARM64 (2.43 GiB
Top issues
#789Test with BOLT44 comments · 2022-10-17#336Using mold for Chromium discussion.37 comments · 2022-02-09#563Build some OS kernel with mold34 comments · 2022-07-01#454mold error when building gcc with lto 'Assertion `!is_v2' failed.'34 comments · 2022-04-21#243SECTIONS doesn't seem to be implemented ?32 comments · 2022-01-04#371Demangle Rust symbols28 comments · 2022-02-28#1305sparc64: a bunch of tests are failing25 comments · 2024-07-16#456[FreeBSD] mold output sometimes doesn't work if stripped25 comments · 2022-04-21
Discussions
#1643Reason(s) behind the decision to rewrite mold in Rust6 comments · 2026-09-01#1520New Linker "wild" "outperforms" mold3 comments · 2025-09-25#1504Undefined Symbol Error when Linking KiCad 9.0.31 comments · 2025-08-18#1477`dist.sh` is wonderful1 comments · 2025-06-24#1469Can mold not link any kernel on PCs`?1 comments · 2025-06-01#1439Fatal error on 'mold -run --no-threads g++ ...'1 comments · 2025-04-09#1431Why does mold also build other architecutres?1 comments · 2025-03-19#1412Is Windows support still planned?5 comments · 2025-02-04
Latest release
mold 3.0.0 v3.0.0 2026-10-05mold 3.0.0 is a new major release of the high-speed linker. As we announced in the 2.42.1 release notes, we have rewritten mold from C++ to Rust, and this is the first release of the Rust version. 2.42.1 is the last release of the C++ version. The goal of mold 3.x is to close the remaining compatibility gaps with GNU ld, particularly in linker script support, and to pave the way for mold to be adopted as the default linker in Linux distributions. mold 3.0 is meant to be a drop-in replacement for 2.42.1. It accepts the same command-line options, supports the same target architectures, and pr