[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNASBiaMX8ihnmhLGmYfHX=ZHZmVN91nxmFZe-OCaw6Px2w@mail.gmail.com>
Date: Wed, 17 Jul 2019 15:54:48 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: Nathan Chancellor <natechancellor@...il.com>,
LKML <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
X86 ML <x86@...nel.org>, "H.J. Lu" <hjl.tools@...il.com>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
"Theodore Y. Ts'o" <tytso@....edu>,
Mike Lothian <mike@...eburn.co.uk>
Subject: Re: [PATCH v2] kbuild: Fail if gold linker is detected
On Wed, Jul 17, 2019 at 4:47 AM Thomas Gleixner <tglx@...utronix.de> wrote:
>
> The gold linker has known issues of failing the build both in random and in
> predictible ways:
>
> - The x86/X32 VDSO build fails with:
>
> arch/x86/entry/vdso/vclock_gettime-x32.o:vclock_gettime.c:function do_hres:
> error: relocation overflow: reference to 'hvclock_page'
>
> That's a known issue for years and the usual workaround is to disable
> CONFIG_X86_32
>
> - A recent build failure is caused by turning a relocation into an
> absolute one for unknown reasons. See link below.
>
> - There are a couple of gold workarounds applied already, but reports
> about broken builds with ld.gold keep coming in on a regular base and in
> most cases the root cause is unclear.
>
> In context of the most recent fail H.J. stated:
>
> "Since building a workable kernel for different kernel configurations
> isn't a requirement for gold, I don't recommend gold for kernel."
>
> So instead of dealing with attempts to duct tape gold support without
> understanding the root cause and without support from the gold folks, fail
> the build when gold is detected.
>
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> Acked-by: Peter Zijlstra (Intel) <peterz@...radead.org>
> Link: https://lore.kernel.org/r/CAMe9rOqMqkQ0LNpm25yE_Yt0FKp05WmHOrwc0aRDb53miFKM+w@mail.gmail.com
> ---
The code looks OK in the build system point of view.
Please let me confirm this, just in case:
For now, we give up all architectures, not only x86, right?
I have not not heard much from other arch maintainers.
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists