Can you confirm that we are now able to link most FreeBSD userland
programs with LLD?
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
It's worth to mention that LLVM/Clang/Extra-tools/Compiler-RT/Polly/LLD (but not LLDB) could be linked with LLD on RHEL (I tried on 6) on second stage.
I really would like to see build bot with this functionality.
It may be worth to mention LLVM CMake LLVM_ENABLE_LLD option with will add -fuse-ld=lld to CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS.
The statement about most userland components on FreeBSD is correct.
I've been testing against FreeBSD-HEAD, which contains a few general FreeBSD cleanups for improved lld compatibility. I couldn't link the rescue tools (a sort of busybox-like multi-binary) and I also had to tweak the version script for libcxxrt (due to issues with demangled symbol matching / wildcards).
The kernel and boot loader components don't link with 3.9.
docs/ReleaseNotes.rst | ||
---|---|---|
29–30 ↗ | (On Diff #68633) | This statement seems a little confusing. I think the point is that the new functionality doesn't come at the cost of performance, compared to earlier versions of LLD which were not usable for real-world linking. But that context is not apparent here for readers of the release note, who may be learning about LLD for the first time from the note. |
What Ed said makes sense to me. I have no strong opinion about the 2x faster than gold fact. If you want to back it up with real numbers, you can use the measurements I and Rafael got for our talk @BSDCan.