]> www.infradead.org Git - users/jedix/linux-maple.git/commit
modules: Support extended MODVERSIONS info
authorMatthew Maurer <mmaurer@google.com>
Fri, 3 Jan 2025 17:37:01 +0000 (17:37 +0000)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 10 Jan 2025 16:25:26 +0000 (01:25 +0900)
commit54ac1ac8edeb74ff87fc880d1ee58785bdcbe323
treec1ea69d5a25023c70bc3165d69ba46a5fc5b8715
parent8c6d7b417f0fe69d7e29501db801838a54c6764b
modules: Support extended MODVERSIONS info

Adds a new format for MODVERSIONS which stores each field in a separate
ELF section. This initially adds support for variable length names, but
could later be used to add additional fields to MODVERSIONS in a
backwards compatible way if needed. Any new fields will be ignored by
old user tooling, unlike the current format where user tooling cannot
tolerate adjustments to the format (for example making the name field
longer).

Since PPC munges its version records to strip leading dots, we reproduce
the munging for the new format. Other architectures do not appear to
have architecture-specific usage of this information.

Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Matthew Maurer <mmaurer@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
arch/powerpc/kernel/module_64.c
kernel/module/internal.h
kernel/module/main.c
kernel/module/version.c