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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx> know about it.


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

From: Sami Tolvanen <samitolvanen@xxxxxxxxxx>

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@xxxxxxxxxx>
Acked-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
[nc: Reword commit message]
Signed-off-by: Nathan Chancellor <natechancellor@xxxxxxxxx>
Tested-by: Sedat Dilek <sedat.dilek@xxxxxxxxx>
Reviewed-by: Sedat Dilek <sedat.dilek@xxxxxxxxx>
Signed-off-by: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxx 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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux