kbuild: add CONFIG_LD_IS_LLD
authorSami Tolvanen <samitolvanen@google.com>
Tue, 28 Apr 2020 22:14:15 +0000 (15:14 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 12 May 2020 08:01:31 +0000 (10:01 +0200)
commitb744b43f79cc758127042e71f9ad7b1afda30f84
tree827c7405379bea7ab45ee2051f281b05f49c298b
parent1bec48982c7abb5d1f065ed72181c134a0b67d9b
kbuild: add CONFIG_LD_IS_LLD

Similarly to the CC_IS_CLANG config, add LD_IS_LLD to avoid GNU ld
specific logic such as ld-version or ld-ifversion and gain the
ability to select potential features that depend on the linker at
configuration time such as LTO.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Acked-by: Masahiro Yamada <masahiroy@kernel.org>
[nc: Reword commit message]
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Reviewed-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
init/Kconfig