]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
modpost: Produce extended MODVERSIONS information
authorMatthew Maurer <mmaurer@google.com>
Fri, 3 Jan 2025 17:37:02 +0000 (17:37 +0000)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 10 Jan 2025 16:25:26 +0000 (01:25 +0900)
commitfc7d5e3210ae083a29ce224ffce18eaf3d1c645a
tree16aade42a63f4224836ee96c4721db1447d2a6d0
parent54ac1ac8edeb74ff87fc880d1ee58785bdcbe323
modpost: Produce extended MODVERSIONS information

Generate both the existing modversions format and the new extended one
when running modpost. Presence of this metadata in the final .ko is
guarded by CONFIG_EXTENDED_MODVERSIONS.

We no longer generate an error on long symbols in modpost if
CONFIG_EXTENDED_MODVERSIONS is set, as they can now be appropriately
encoded in the extended section. These symbols will be skipped in the
previous encoding. An error will still be generated if
CONFIG_EXTENDED_MODVERSIONS is not set.

Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Matthew Maurer <mmaurer@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
kernel/module/Kconfig
scripts/Makefile.modpost
scripts/mod/modpost.c