]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: mkcompile_h: Include $LD version in /proc/version
authorKees Cook <keescook@chromium.org>
Thu, 2 Apr 2020 08:18:37 +0000 (01:18 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 8 Apr 2020 15:13:45 +0000 (00:13 +0900)
commitf2ffa6e6f02044ff5a932a7e0e9e943afcce66f2
tree0aeaf77d289824565442a1c352e6dc0c5624fdf3
parent511ea643f2a35ff0c6cc030819feca391f1686bf
kbuild: mkcompile_h: Include $LD version in /proc/version

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@chromium.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Fangrui Song <maskray@google.com>
Reviewed-by: Sedat Dilek <sedat.dilek@gmail.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
init/Makefile
scripts/mkcompile_h