Files
linux/scripts
Masahiro Yamada 957f00c551 modpost: fix section mismatch check for exported init/exit sections
commit 28438794ab upstream.

Since commit f02e8a6596 ("module: Sort exported symbols"),
EXPORT_SYMBOL* is placed in the individual section ___ksymtab(_gpl)+<sym>
(3 leading underscores instead of 2).

Since then, modpost cannot detect the bad combination of EXPORT_SYMBOL
and __init/__exit.

Fix the .fromsec field.

Fixes: f02e8a6596 ("module: Sort exported symbols")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-06-13 14:13:14 +09:00
..
2016-08-24 22:34:19 +02:00
2023-05-16 11:09:32 +09:00
2023-05-16 11:09:32 +09:00
2023-05-16 11:09:32 +09:00
2014-08-20 16:03:45 +02:00
2014-08-20 16:03:45 +02:00
2014-08-20 16:03:45 +02:00
2014-12-20 00:01:12 +01:00
2014-08-20 16:03:45 +02:00
2023-05-16 11:09:32 +09:00
2023-05-16 11:09:32 +09:00
2015-08-28 17:04:40 +02:00
2014-08-20 16:03:45 +02:00