kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1
authorNathan Chancellor <natechancellor@gmail.com>
Thu, 19 Nov 2020 20:46:58 +0000 (13:46 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 1 Dec 2020 13:46:06 +0000 (22:46 +0900)
commitd5750cd3c5486e9c0fa11100df01de8ca0c13fa7
tree26a4b057cdca2ac3fdf9ba54d8732b3a9f4bd5c5
parent59612b24f78a0b61fe078ec9dff2e48e9cec52c0
kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1

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 <nivedita@alum.mit.edu>
Reported-by: kernelci.org bot <bot@kernelci.org>
Reported-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
MAINTAINERS
init/Kconfig
scripts/lld-version.sh [new file with mode: 0755]