The program itself claims compatibility goal, and seems to work fine on simple tests
This design goal is claimed on their website:
LLD is a drop-in replacement for the GNU linkers that accepts the same command line arguments and linker scripts as GNU.
E.g. on Ubuntu 20.04 I install:
sudo apt install lld
lld --version
says:
LLD 10.0.0 (compatible with GNU linkers)
and I'm able to compile a C hello world with -fuse-ld=lld
:
gcc -fuse-ld=lld -ggdb3 -O0 -std=c11 -Wall -Wextra -pedantic -o hello.out hello.c
Performance benchmark vs gold
I'll document results soon at: Replacing ld with gold - any experience?