The build will pass -fuse-ld=bfd during the linking of src/boot/efi/linuxx64.elf.stub. Using the -flto flag during compilation will cause the build to complain about LLVMGold.so not being installed if the plugin doesn't exist since clang+bfd requires the plugin if -flto is invoked. If binutils is forcefully removed from the system, and -flto is not invoked, the link obviously fails since bfd linker doesn't exist. Interestingly, linker arguments like --icf=all, which is invoked 400 times in the build log, doesn't cause a failure so that particular link is also ignoring LDFLAGS. -lgcc is also being linked against which means it's also ignoring compiler-rt and libunwind as the runtime/unwinder to be used. Reproducible: Always
Created attachment 866510 [details] build calling -fuse-ld=bfd on a clang/llvm toolchain system
Created attachment 866511 [details] emerge --info
I suspect 254 will be fine.
Just test compiled the release candidate, and it's ok. I feel like a dumbdumb having spent some time on this, lol.
Based on bug 832019, lld doesn't work for the old systemd code anyway. As Sam said, the changes coming in systemd-254 will fix this.