diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-06-10 21:32:30 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-29 09:59:54 +0300 |
commit | 959bbaf5b7a9cc5504b88e3a5b87a11937df6366 (patch) | |
tree | 8a321540335bee8d5933979590e6a8e0c712887c /mm | |
parent | c980392af1473d6d5662f70d8089c8e6d85144a4 (diff) | |
download | linux-959bbaf5b7a9cc5504b88e3a5b87a11937df6366.tar.xz |
modpost: fix section mismatch check for exported init/exit sections
commit 28438794aba47a27e922857d27b31b74e8559143 upstream.
Since commit f02e8a6596b7 ("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: f02e8a6596b7 ("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>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions