Patch "kbuild: add CONFIG_LD_IS_LLD" has been added to the 5.4-stable tree

gregkh at linuxfoundation.org gregkh at linuxfoundation.org
Fri Jun 25 03:17:16 PDT 2021


This is a note to let you know that I've just added the patch titled

    kbuild: add CONFIG_LD_IS_LLD

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     kbuild-add-config_ld_is_lld.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable at vger.kernel.org> know about it.


>From foo at baz Fri Jun 25 12:15:34 PM CEST 2021
From: Jisheng Zhang <Jisheng.Zhang at synaptics.com>
Date: Fri, 25 Jun 2021 15:48:35 +0800
Subject: kbuild: add CONFIG_LD_IS_LLD
To: Nick Desaulniers <ndesaulniers at google.com>, stable at vger.kernel.org, Greg Kroah-Hartman <gregkh at linuxfoundation.org>, Nathan Chancellor <natechancellor at gmail.com>, Ard Biesheuvel <ardb at kernel.org>, Sami Tolvanen <samitolvanen at google.com>, Masahiro Yamada <masahiroy at kernel.org>, Sedat Dilek <sedat.dilek at gmail.com>, Thomas Bogendoerfer <tsbogend at alpha.franken.de>
Cc: "Catalin Marinas" <catalin.marinas at arm.com>, "Will Deacon" <will at kernel.org>, "Alan Modra" <amodra at gmail.com>, "Fāng-ruì Sòng" <maskray at google.com>, "Quentin Perret" <qperret at google.com>, linux-arm-kernel at lists.infradead.org
Message-ID: <20210625154836.382536b1 at xhacker.debian>

From: Sami Tolvanen <samitolvanen at google.com>

commit b744b43f79cc758127042e71f9ad7b1afda30f84 upstream.

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 at google.com>
Acked-by: Masahiro Yamada <masahiroy at kernel.org>
[nc: Reword commit message]
Signed-off-by: Nathan Chancellor <natechancellor at gmail.com>
Tested-by: Sedat Dilek <sedat.dilek at gmail.com>
Reviewed-by: Sedat Dilek <sedat.dilek at gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend at alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
---
 init/Kconfig |    3 +++
 1 file changed, 3 insertions(+)

--- a/init/Kconfig
+++ b/init/Kconfig
@@ -20,6 +20,9 @@ config GCC_VERSION
 config CC_IS_CLANG
 	def_bool $(success,$(CC) --version | head -n 1 | grep -q clang)
 
+config LD_IS_LLD
+	def_bool $(success,$(LD) -v | head -n 1 | grep -q LLD)
+
 config CLANG_VERSION
 	int
 	default $(shell,$(srctree)/scripts/clang-version.sh $(CC))


Patches currently in stable-queue which might be from Jisheng.Zhang at synaptics.com are

queue-5.4/arm64-link-with-z-norelro-for-lld-or-aarch64-elf.patch
queue-5.4/kbuild-add-config_ld_is_lld.patch



More information about the linux-arm-kernel mailing list