diff mbox series

[v1,06/14] DCE/DSE: add HAVE_SECTION_SHF_GROUP_SUPPORT option

Message ID 04271c1f3a4c3d369310146faefc0d05144276e9.1699025537.git.tanyuan@tinylab.org (mailing list archive)
State Not Applicable, archived
Headers show
Series DCE/DSE: Add Dead Syscalls Elimination support, part2 | expand

Commit Message

Yuan Tan Nov. 3, 2023, 4 p.m. UTC
SHF_GROUP requires ld >= 2.36.

LLD supports SHF_GROUP too, but it does not support riscv
HAVE_LD_DEAD_CODE_DATA_ELIMINATION. Therefore, I haven't tested the
minimum compatible version yet.

Signed-off-by: Yuan Tan <tanyuan@tinylab.org>
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
---
 init/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/init/Kconfig b/init/Kconfig
index 1ef5b19918e5..4296c97cfc84 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1467,6 +1467,11 @@  config HAVE_SECTION_SHF_LINK_ORDER_SUPPORT
 	depends on AS_IS_GNU && AS_VERSION >= 23500
 	default y
 
+config HAVE_SECTION_SHF_GROUP_SUPPORT
+	bool
+	depends on AS_IS_GNU && AS_VERSION >= 23600
+	default y
+
 menuconfig EXPERT
 	bool "Configure standard kernel features (expert users)"
 	# Unhide debug options, to make the on-by-default options visible