{"full_name":"rui314/mold","owner":"rui314","name":"mold","shard":"1","url":"https://github.com/rui314/mold","description":"mold 🦠: A Modern Linker in Rust 🦀","homepage":"","topics":[],"tag_pages":[],"language":"Rust","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/47400?v=4","created_at":"2020-09-29T05:12:48Z","pushed_at":"2026-10-22T05:12:11Z","metrics":{"stars":17753,"forks":587,"watchers":108,"issues":1101,"prs":595,"releases":67,"issues_open":182,"issues_closed":919,"prs_open":34,"prs_closed":158,"prs_merged":403,"discussions":50},"growth":{"day":{"stars":3,"forks":0,"base_day":"2026-11-15"},"week":{"stars":28,"forks":2,"base_day":"2026-11-04"},"month":{"stars":100,"forks":11,"base_day":"2026-10-17"}},"history":{"dates":["2026-09-06","2026-09-07","2026-09-08","2026-09-09","2026-09-10","2026-09-11","2026-09-12","2026-09-13","2026-09-14","2026-09-15","2026-09-16","2026-09-17","2026-09-18","2026-09-19","2026-09-20","2026-09-21","2026-09-22","2026-09-23","2026-09-24","2026-09-25","2026-09-26","2026-09-27","2026-09-28","2026-09-29","2026-09-30","2026-10-01","2026-10-02","2026-10-03","2026-10-04","2026-10-05","2026-10-06","2026-10-07","2026-10-08","2026-10-09","2026-10-10","2026-10-11","2026-10-12","2026-10-13","2026-10-14","2026-10-15","2026-10-16","2026-10-17","2026-10-18","2026-10-19","2026-10-20","2026-10-21","2026-10-22","2026-10-23","2026-10-24","2026-10-25","2026-10-26","2026-10-27","2026-10-28","2026-10-29","2026-10-30","2026-10-31","2026-11-01","2026-11-02","2026-11-03","2026-11-04","2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[16945,16949,16953,16955,16958,16962,16968,16985,16998,17011,17018,17025,17031,17108,17155,17195,17218,17225,17232,17245,17254,17259,17265,17267,17268,17269,17274,17277,17286,17295,17403,17498,17545,17577,17591,17604,17617,17626,17632,17641,17646,17653,17656,17662,17665,17669,17672,17674,17679,17682,17687,17690,17692,17704,17704,17705,17708,17713,17721,17725,17740,17745,17746,17747,17750,17750,17753],"forks":[550,550,550,550,550,550,550,553,554,554,553,553,553,555,558,560,561,564,564,565,565,565,564,564,565,565,565,565,567,568,570,572,574,576,577,577,576,576,577,576,576,576,576,577,577,577,577,579,580,580,581,582,582,584,584,584,585,585,585,585,585,585,585,585,587,587,587],"watchers":[110,111,111,111,111,111,111,111,111,111,111,111,110,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,113,113,113,113,113,113,113,112,112,112,112,112,112,107,107,107,107,107,107,107,107,107,107,107,null,107,107,107,108,108,108],"issues_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,181,181,181,181,182,182],"prs_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,32,32,32,33,34,34]},"boards":{},"same_owner":[{"full_name":"rui314/chibicc","name":"chibicc","shard":"1","boards":{}}],"issues":[{"number":789,"title":"Test with BOLT","comments":44,"created_at":"2022-10-17T21:24:01Z"},{"number":336,"title":"Using mold for Chromium discussion.","comments":37,"created_at":"2022-02-09T11:27:18Z"},{"number":563,"title":"Build some OS kernel with mold","comments":34,"created_at":"2022-07-01T04:24:53Z"},{"number":454,"title":"mold error when building gcc with lto 'Assertion `!is_v2' failed.'","comments":34,"created_at":"2022-04-21T15:11:43Z"},{"number":243,"title":"SECTIONS doesn't seem to be implemented ?","comments":32,"created_at":"2022-01-04T16:11:35Z"},{"number":371,"title":"Demangle Rust symbols","comments":28,"created_at":"2022-02-28T05:44:16Z"},{"number":1305,"title":"sparc64: a bunch of tests are failing","comments":25,"created_at":"2024-07-16T11:22:43Z"},{"number":456,"title":"[FreeBSD] mold output sometimes doesn't work if stripped","comments":25,"created_at":"2022-04-21T23:51:54Z"}],"discussions":[{"number":1643,"title":"Reason(s) behind the decision to rewrite mold in Rust","comments":6,"category":"General","created_at":"2026-09-01T12:21:13Z"},{"number":1520,"title":"New Linker \"wild\" \"outperforms\" mold","comments":3,"category":"General","created_at":"2025-09-25T15:56:41Z"},{"number":1504,"title":"Undefined Symbol Error when Linking KiCad 9.0.3","comments":1,"category":"General","created_at":"2025-08-18T22:37:57Z"},{"number":1477,"title":"`dist.sh` is wonderful","comments":1,"category":"General","created_at":"2025-06-24T17:49:42Z"},{"number":1469,"title":"Can mold not link any kernel on PCs`?","comments":1,"category":"General","created_at":"2025-06-01T10:56:04Z"},{"number":1439,"title":"Fatal error on 'mold -run --no-threads g++ ...'","comments":1,"category":"Q&A","created_at":"2025-04-09T17:19:12Z"},{"number":1431,"title":"Why does mold also build other architecutres?","comments":1,"category":"General","created_at":"2025-03-19T05:24:47Z"},{"number":1412,"title":"Is Windows support still planned?","comments":5,"category":"Q&A","created_at":"2025-02-04T17:47:34Z"}],"latest_release":{"name":"mold 3.0.0","tag":"v3.0.0","published_at":"2026-10-05T10:23:19Z","body":"mold 3.0.0 is a new major release of the high-speed linker. As we announced in the [2.42.1 release notes](https://github.com/rui314/mold/releases/tag/v2.42.1), 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.\r\n\r\nmold 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 produces the same output except for the bug fixes listed below. Linking performance remains on par with 2.42.1. We verified compatibility by running the test suite on every supported target, comparing linker output across a broad range of real-world workloads and option combinations, and building all Gentoo packages. We found no regressions.\r\n\r\nThe move to Rust also makes mold safer with corrupted input files. The C++ version could read memory out of bounds on such input and crash with a segmentation fault. In mold 3.0, those reads are bounds-checked, so mold stops with a panic at the faulty access instead.\r\n\r\nIf you build mold yourself, note that the build system has changed. See \"Build Changes\" below.\r\n\r\n## Build Changes\r\n\r\n- mold is now built with Cargo instead of CMake. It requires Rust 1.95 or later and a C compiler. Run `cargo build --release` to build mold and `./install-mold.sh` to install it; the install script accepts `PREFIX` and `DESTDIR`. The CMake options have been removed.\r\n\r\n- If you install mold's libraries into a directory other than `$PREFIX/lib`, such as `/usr/lib64`, set the `MOLD_LIBDIR` environment variable to that directory both when building and when installing mold, so that `mold -run` can find `mold-wrapper.so`.\r\n\r\n- mold no longer depends on [oneTBB](https://github.com/uxlfoundation/onetbb). It statically links mimalloc 3.5.3 as before; build with `--features system-allocator` to use the system's malloc instead. mold links the system's zlib if available and includes zstd and BLAKE3; set `ZSTD_SYS_USE_PKG_CONFIG=1` to link the system's zstd. (56ee0f8c1b5d4b4b10fcb008b3805875b09a7b9a)\r\n\r\n- The `MOLD_TARGETS` CMake variable has been replaced with Cargo features. As before, distributions should build mold for all targets.\r\n\r\n- The test suite now runs with `cargo test` instead of `ctest`. `install-build-deps.sh` has been replaced with `install-test-deps.sh`, which you need only to run the tests.\r\n\r\n## Bug Fixes and Compatibility Improvements\r\n\r\n- Fixed a crash when creating a statically-linked executable with a version script or `--default-symver`. (f10b0c40c8635605459b8586ce49ed1cad1c26c3)\r\n\r\n- Fixed a crash or a corrupted output when the output file is also an input file, as in `mold -r -o foo.o foo.o bar.o`. (d2b88ab395b6628fb8e3070dace599eaa399257c)\r\n\r\n- `--gc-sections` no longer removes the functions given by `--init` and `--fini`. (c9e4cc4b6ef308a101de43773e613ccaa93dffa6)\r\n\r\n- Common symbols of the same name with different sizes now get the largest size and the strictest alignment, as in GNU ld and lld. (d5781d582c94bc74af84dd4af9ce9f66763993d4)\r\n\r\n- `--icf=safe` no longer folds functions exported from a shared library, and `--icf=all` no longer crashes with `--emit-relocs`. (ceab12c56b0d9d4aab0e8ed6a0adf59aa9a11692, 3dcd1df3826e4cc7b9fab91351d2d41972a7e2c8)\r\n\r\n- A versioned reference such as `foo@VER` in a shared library no longer pulls in an archive member that defines an unversioned `foo`. (https://github.com/rui314/mold/issues/1657) (44bfa2a9b227729ecd6de1261c462b98ef709ed0)\r\n\r\n- Fixed several cases of nondeterministic output, in `--dependency-file`, `--repro`, `-r` with many COMDAT groups of the same name, and some dynamic relocations. (516456132edf40bdd96b035be1365d97683c8127, 6d33903650b2b4e49594d12aacb8b83a4440c879, 51e23d44d7b3badd06dc1254e4ef4833d","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}