kernel_optimize_test/scripts/mod
Masahiro Yamada 959bbaf5b7 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-06-29 08:59:54 +02:00
..
.gitignore
devicetable-offsets.c soundwire: extend SDW_SLAVE_ENTRY 2020-06-30 21:26:17 +05:30
empty.c
file2alias.c soundwire: extend SDW_SLAVE_ENTRY 2020-06-30 21:26:17 +05:30
Makefile kbuild: introduce hostprogs-always-y and userprogs-always-y 2020-08-10 01:32:59 +09:00
mk_elfconfig.c
modpost.c modpost: fix section mismatch check for exported init/exit sections 2022-06-29 08:59:54 +02:00
modpost.h modpost: change elf_info->size to size_t 2020-06-06 23:39:20 +09:00
sumversion.c modpost: use read_text_file() and get_line() for reading text files 2020-06-06 23:38:13 +09:00