Re: [PATCH v2] kbuild: Fail if gold linker is detected

Theodore Y. Ts'o
2019-07-16T23:37:30Z

On Wed, Jul 17, 2019 at 12:25:14AM +0200, Thomas Gleixner wrote:
> > It's been my default system linker for years and I've had very few issues
> > with it and it's a big improvement when linking with LTO
>
> I understand, but the fact that you need to turn off config options in
> order to build a kernel and the clear statement that it's not recommended
> makes it truly unsuitable and unmaintainable for us.

Or if you work for a cloud company who is willing to make the gold
linker work for your specific use case and configuration (and ideally,
have gold toolchain experts on staff who will work with you), then it
might be OK, but just for that particular use case. (Just as Android
kernels worked with Clang when Clang was still miscompiling kernel on
different architectures and configurations.) In those cases, you can
just carry a patch to force the gold linker to work.

The point though is the teams that were using alternative,
not-always-reliable toolchains, were big boys and girls, and they
weren't asking the upstream kernel devs for support. And they only
cared about a few specific configurations, and not something that
would work for all or even most configurations and hardware platforms.

- Ted