From: Greg Kroah-Hartman Date: Thu, 10 Mar 2022 09:18:20 +0000 (+0100) Subject: 4.19-stable patches X-Git-Tag: v4.9.306~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8126ec37ed527e6e56728e47f11e83bfc5922921;p=thirdparty%2Fkernel%2Fstable-queue.git 4.19-stable patches added patches: kbuild-add-config_ld_is_lld.patch --- diff --git a/queue-4.19/kbuild-add-config_ld_is_lld.patch b/queue-4.19/kbuild-add-config_ld_is_lld.patch new file mode 100644 index 00000000000..552a99bd560 --- /dev/null +++ b/queue-4.19/kbuild-add-config_ld_is_lld.patch @@ -0,0 +1,38 @@ +From b744b43f79cc758127042e71f9ad7b1afda30f84 Mon Sep 17 00:00:00 2001 +From: Sami Tolvanen +Date: Tue, 28 Apr 2020 15:14:15 -0700 +Subject: kbuild: add CONFIG_LD_IS_LLD + +From: Sami Tolvanen + +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 +Acked-by: Masahiro Yamada +[nc: Reword commit message] +Signed-off-by: Nathan Chancellor +Tested-by: Sedat Dilek +Reviewed-by: Sedat Dilek +Signed-off-by: Thomas Bogendoerfer +Signed-off-by: Greg Kroah-Hartman +--- + init/Kconfig | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/init/Kconfig ++++ b/init/Kconfig +@@ -19,6 +19,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)) diff --git a/queue-4.19/series b/queue-4.19/series index e415e7d5f40..faedf6fe431 100644 --- a/queue-4.19/series +++ b/queue-4.19/series @@ -16,5 +16,6 @@ arm-use-loadaddr-to-get-load-address-of-sections.patch arm-spectre-bhb-workaround.patch arm-include-unprivileged-bpf-status-in-spectre-v2-reporting.patch arm-fix-build-error-when-bpf_syscall-is-disabled.patch +kbuild-add-config_ld_is_lld.patch arm-fix-co-processor-register-typo.patch arm-do-not-use-nocrossrefs-directive-with-ld.lld.patch