Commit ac61506b authored by Sami Tolvanen's avatar Sami Tolvanen Committed by Masahiro Yamada
Browse files

rust: Use gendwarfksyms + extended modversions for CONFIG_MODVERSIONS



Previously, two things stopped Rust from using MODVERSIONS:
1. Rust symbols are occasionally too long to be represented in the
   original versions table
2. Rust types cannot be properly hashed by the existing genksyms
   approach because:
	* Looking up type definitions in Rust is more complex than C
	* Type layout is potentially dependent on the compiler in Rust,
	  not just the source type declaration.

CONFIG_EXTENDED_MODVERSIONS addresses the first point, and
CONFIG_GENDWARFKSYMS the second. If Rust wants to use MODVERSIONS, allow
it to do so by selecting both features.

Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
Co-developed-by: default avatarMatthew Maurer <mmaurer@google.com>
Signed-off-by: default avatarMatthew Maurer <mmaurer@google.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 272f8a6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment