aboutsummaryrefslogtreecommitdiff
path: root/init/Makefile
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2020-04-02 01:18:37 -0700
committerMasahiro Yamada <[email protected]>2020-04-09 00:13:45 +0900
commit4dcc9a88448a65a1e855228917cfbb92ac4b4f45 (patch)
tree0aeaf77d289824565442a1c352e6dc0c5624fdf3 /init/Makefile
parent60969f02f07ae1445730c7b293c421d179da729c (diff)
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 <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Tested-by: Nick Desaulniers <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Tested-by: Nathan Chancellor <[email protected]> Reviewed-by: Fangrui Song <[email protected]> Reviewed-by: Sedat Dilek <[email protected]> Tested-by: Sedat Dilek <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'init/Makefile')
-rw-r--r--init/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/Makefile b/init/Makefile
index 6246a06364d0..30aa8ab11120 100644
--- a/init/Makefile
+++ b/init/Makefile
@@ -35,4 +35,4 @@ include/generated/compile.h: FORCE
@$($(quiet)chk_compile.h)
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
"$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" \
- "$(CONFIG_PREEMPT_RT)" "$(CC) $(KBUILD_CFLAGS)"
+ "$(CONFIG_PREEMPT_RT)" "$(CC) $(KBUILD_CFLAGS)" "$(LD)"