sold is a fork of mold that supports not only Linux but also macOS/iOS. Originally, sold was available under a commercial license. Now, it has been relicensed under the MIT license.
The build instruction for sold is the same as for mold except that you check
out https://github.com/bluewhalesystems/sold.git instead of
https://github.com/rui314/mold.git. For the details, please see
https://github.com/rui314/mold#how-to-build.
sold is installed under several different executable names as follows:
-
ld.sold: GNU ld-compatible linker for Linux and other ELF-based systems. The instructions to use sold on Linux is the same as the mold linker. For the details, see the mold's README. -
ld64.sold: Apple's ld-compatible mode for macOS/iOS. You can use the linker on macOS by adding--ld-path=path/to/ld64.soldto the linker flags. -
ld.moldandld64.mold: They are just aliases forld.soldandld64.sold, respectively.