android_kernel_xiaomi_sm7250/scripts/mod
Masahiro Yamada 9a13d7ef2e modpost: fix section mismatch check for exported init/exit sections
commit 28438794aba47a27e922857d27b31b74e8559143 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>
2022-07-02 16:27:38 +02:00
..
.gitignore
devicetable-offsets.c
empty.c
file2alias.c
Makefile
mk_elfconfig.c
modpost.c modpost: fix section mismatch check for exported init/exit sections 2022-07-02 16:27:38 +02:00
modpost.h
sumversion.c