Re: [PATCH] kbuild: mkcompile_h: Include $LD version in /proc/version

From: Nathan Chancellor
Date: Sat Apr 04 2020 - 00:06:42 EST


On Thu, Apr 02, 2020 at 01:18:37AM -0700, Kees Cook wrote:
> When doing Clang builds of the kernel, it is possible to link with
> either ld.bfd (binutils) or ld.lld (LLVM), but it is not possible to
> discover this from a running kernel. Add the "$LD -v" output to
> /proc/version.
>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>

With this patch + Masahiro's fold in:

Reviewed-by: Nathan Chancellor <natechancellor@xxxxxxxxx>
Tested-by: Nathan Chancellor <natechancellor@xxxxxxxxx>