As gentoo supports the gold linker as the default system linker, but linux kernels refuse to be built with the gold linker, could you please add a patch to gentoo sources which allows the kernel to be build even on systems where the gold linker is default? I use the following: In the kernel's main Makefile, around line 430, replace LD = $(CROSS_COMPILE)ld with LD = $(CROSS_COMPILE)ld.bfd I don't know if there are better ways...
The Gold linker has historically caused problem in the kernel. Because of that fact, upstream stopped supporting it. If our users start using the gold linker, then those problem become ours. As such, we will follow upstream's lead and not support building with the gold linker in genpatches.
(In reply to Mike Pagano from comment #1) > As such, we will follow upstream's lead and not support building with the > gold linker in genpatches. That's exactly what I wanted and what my patch does: Make sure that the kernel is *always* built with the bfd linker, even if the gold linker (or the llvm linker) is the system-wide default (i.e. even if ld points to gold or lld). I never wanted to build my kernel with the gold linker. I just wanted to avoid manually editing the Makefile every time after installing new gentoo sources to make sure the kernel uses the bfd linker.
But llvm linker is supported. But you want it not supported for everyone else ?
This should work for you: make LD=ld.bfd