LLVM

lld - LLVM Native Linker

A high-performance, drop-in replacement linker for ELF, COFF, Mach-O, and WebAssembly formats

View Documentation

Key Features

Performance

Significantly faster linking times compared to traditional linkers via LLVM's optimized code generation.

Compatibility

Full support for ELF, COFF, Mach-O, and WebAssembly formats with drop-in replacement for existing toolchains.

Toolchain Integration

Native integration with LLVM toolchain components like Clang for seamless compilation to execution.

Cross-Platform

Available on Linux, Windows, and macOS platforms with consistent behavior across OS boundaries.

Getting Started

Basic Usage

$ clang -fuse-ld=lld-17 main.c -o main
$ lld-17 object1.o object2.o -o final
View Full Documentation

Join the lld Community

Collaborate on improving the next generation linker and contribute to LLVM's toolchain infrastructure.

Contribute to lld