Rust for Linux List
 help / color / mirror / Atom feed
* [PATCH 0/3] MODVERSIONS + RUST Redux
@ 2023-11-15 18:50 Matthew Maurer
  2023-11-15 18:50 ` [PATCH 2/3] modpost: Extended modversion support Matthew Maurer
  2023-11-15 21:05 ` [PATCH 0/3] MODVERSIONS + RUST Redux Trevor Gross
  0 siblings, 2 replies; 8+ messages in thread
From: Matthew Maurer @ 2023-11-15 18:50 UTC (permalink / raw)
  To: gary, masahiroy, Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho
  Cc: Matthew Maurer, Boqun Feng, Björn Roy Baron, Benno Lossin,
	Andreas Hindborg, Alice Ryhl, rust-for-linux

Support both MODVERSIONS and RUST by making symbol version information extensible. This works by having a separate section per field, and allowing iteration to work differently per field. The old module information remains available to allow existing kmod tools to continue to work on new modules if they are only looking for C information.

This also gives us the ability to attach additional information to symbol versioning (e.g. namespacing) should it become necessary in the future without breaking backwards compatibility - new sections will be added, but existing tools will still find all their information and keep the existing format.

PPC has a hack around removing leading dots in symvers. I have
replicated this hack for the new format, but without context for why
this was being done, I can't test that it works as expected.

This was inspired by Masahiro Yamada's suggestion[1] when discussing the previous attempt.
Link: https://lore.kernel.org/lkml/CAK7LNATsuszFR7JB5ZkqVS1W=hWr9=E7bTf+MvgJ+NXT3aZNwg@mail.gmail.com/

Matthew Maurer (3):
  export_report.pl: Rehabilitate script
  modpost: Extended modversion support
  export_report: Use new version info format

 arch/powerpc/kernel/module_64.c | 24 +++++++++-
 init/Kconfig                    |  1 -
 kernel/module/internal.h        | 16 ++++++-
 kernel/module/main.c            |  9 +++-
 kernel/module/version.c         | 77 +++++++++++++++++++++++++++++++++
 scripts/export_report.pl        | 17 +++++---
 scripts/mod/modpost.c           | 33 ++++++++++++--
 7 files changed, 161 insertions(+), 16 deletions(-)

-- 
2.43.0.rc0.421.g78406f8d94-goog


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-11-16 17:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-15 18:50 [PATCH 0/3] MODVERSIONS + RUST Redux Matthew Maurer
2023-11-15 18:50 ` [PATCH 2/3] modpost: Extended modversion support Matthew Maurer
2023-11-16 17:12   ` Luis Chamberlain
2023-11-15 21:05 ` [PATCH 0/3] MODVERSIONS + RUST Redux Trevor Gross
     [not found]   ` <CAGSQo01pE=V+NCdgp-1r_PAfn_48D4yXb91spHf8cZA0Z7GoLA@mail.gmail.com>
2023-11-15 21:24     ` Matthew Maurer
2023-11-15 21:54       ` Trevor Gross
2023-11-16  7:19         ` Ariel Miculas
2023-11-16 14:49       ` Laura Abbott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox