linux-stable/scripts/mod
Masahiro Yamada 1b9980fb24 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>
2022-07-02 16:17:16 +02:00
..
.gitignore
devicetable-offsets.c staging: fsl-mc: add support for device table matching 2016-06-26 17:14:03 -07:00
empty.c
file2alias.c modpost: file2alias: check prototype of handler 2019-04-27 09:34:41 +02:00
Makefile kbuild: Consolidate header generation from ASM offset information 2018-11-23 08:20:34 +01:00
mk_elfconfig.c
modpost.c modpost: fix section mismatch check for exported init/exit sections 2022-07-02 16:17:16 +02:00
modpost.h Avoid conflict with host definitions when cross-compiling 2015-08-20 14:55:54 +02:00
sumversion.c kbuild: trivial - use tabs for code indent where possible 2014-06-10 14:00:53 +02:00