VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Nathan Chancellor <natechancellor@gmail.com> 2020-11-19 13:46:58 -0700 committer: Masahiro Yamada <masahiroy@kernel.org> 2020-12-01 22:46:06 +0900 commit: d5750cd3c5486e9c0fa11100df01de8ca0c13fa7 parent: 59612b24f78a0b61fe078ec9dff2e48e9cec52c0
Commit Summary:
kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1
Diffstat:
1 file changed, 5 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 92c58b45abb8..b9037d6c5ab3 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -47,6 +47,10 @@ config CLANG_VERSION
 	int
 	default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
 
+config LLD_VERSION
+	int
+	default $(shell,$(srctree)/scripts/lld-version.sh $(LD))
+
 config CC_CAN_LINK
 	bool
 	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag)) if 64BIT
@@ -1351,6 +1355,7 @@ config LD_DEAD_CODE_DATA_ELIMINATION
 config LD_ORPHAN_WARN
 	def_bool y
 	depends on ARCH_WANT_LD_ORPHAN_WARN
+	depends on !LD_IS_LLD || LLD_VERSION >= 110000
 	depends on $(ld-option,--orphan-handling=warn)
 
 config SYSCTL