Subject: Re: [PATCH v2 2/2] kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1

From: Kees Cook <[email-masked]>
Date: Tue, 24 Nov 2020 14:22:31 -0800

On Thu, Nov 19, 2020 at 01:13:27PM -0800, Nick Desaulniers wrote:
> On Thu, Nov 19, 2020 at 12:57 PM Nathan Chancellor
> <[email-masked]> wrote:
> >
> > ld.lld 10.0.1 spews a bunch of various warnings about .rela sections,
> > along with a few others. Newer versions of ld.lld do not have these
> > warnings. As a result, do not add '--orphan-handling=warn' to
> > LDFLAGS_vmlinux if ld.lld's version is not new enough.
> >
> > Link: https://github.com/ClangBuiltLinux/linux/issues/1187
> > Link: https://github.com/ClangBuiltLinux/linux/issues/1193
> > Reported-by: Arvind Sankar <[email-masked]>
> > Reported-by: kernelci.org bot <[email-masked]>
> > Reported-by: Mark Brown <[email-masked]>
> > Reviewed-by: Kees Cook <[email-masked]>
> > Signed-off-by: Nathan Chancellor <[email-masked]>
> 
> Thanks for the additions in v2.
> Reviewed-by: Nick Desaulniers <[email-masked]>

I'm going to carry this for a few days in -next, and if no one screams,
ask Linus to pull it for v5.10-rc6.

Thanks!

-- 
Kees Cook