mold
A modern linker, and a faster drop-in replacement for GNU ld. tldr-pages
On several platforms
Several platforms
Run a build command such as make, ninja, or cargo, with mold used in place of ld
mold --run command argumentsIdentifyLink object files into an executable
mold path/to/file1.o path/to/file2.o ... --output path/to/output_executableIdentifyLink object files into a shared library
mold --shared path/to/file1.o path/to/file2.o ... --output path/to/library.soIdentifyLink an object file with a library located in a specific directory
mold path/to/file.o --library-path path/to/library_directory -llibrary_nameIdentifyPrint which input files depend on which others for each symbol
mold --print-dependencies path/to/file1.o path/to/file2.o ... --output path/to/output_executableIdentify