summaryrefslogtreecommitdiff
path: root/kernel/module
diff options
context:
space:
mode:
authorSami Tolvanen <samitolvanen@google.com>2025-01-03 20:45:23 +0000
committerMasahiro Yamada <masahiroy@kernel.org>2025-01-11 01:25:25 +0900
commitf28568841ae0a0dd48dfc5400aaebedf10a54d10 (patch)
tree99c61ffd10979d6f441541323dcaa7cbecb13458 /kernel/module
parenta56fece7f302ff1eb49535e66bdd5d03ced0ca20 (diff)
tools: Add gendwarfksyms
Add a basic DWARF parser, which uses libdw to traverse the debugging information in an object file and looks for functions and variables. In follow-up patches, this will be expanded to produce symbol versions for CONFIG_MODVERSIONS from DWARF. Signed-off-by: Sami Tolvanen <samitolvanen@google.com> Reviewed-by: Petr Pavlu <petr.pavlu@suse.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'kernel/module')
-rw-r--r--kernel/module/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/module/Kconfig b/kernel/module/Kconfig
index 7b329057997a..4637f063d0fc 100644
--- a/kernel/module/Kconfig
+++ b/kernel/module/Kconfig
@@ -169,6 +169,14 @@ config MODVERSIONS
make them incompatible with the kernel you are running. If
unsure, say N.
+config GENDWARFKSYMS
+ bool "gendwarfksyms (from debugging information)"
+ depends on DEBUG_INFO
+ # Requires full debugging information, split DWARF not supported.
+ depends on !DEBUG_INFO_REDUCED && !DEBUG_INFO_SPLIT
+ # Requires ELF object files.
+ depends on !LTO
+
config ASM_MODVERSIONS
bool
default HAVE_ASM_MODVERSIONS && MODVERSIONS