]> Git Repo - linux.git/commit
modpost: fix section mismatch check for exported init/exit sections
authorMasahiro Yamada <[email protected]>
Fri, 10 Jun 2022 18:32:30 +0000 (03:32 +0900)
committerMasahiro Yamada <[email protected]>
Sun, 19 Jun 2022 23:18:03 +0000 (08:18 +0900)
commit28438794aba47a27e922857d27b31b74e8559143
tree119c2a6d038c6bc7a1c7e2379871e43099d33e63
parenta111daf0c53ae91e71fd2bfe7497862d14132e3e
modpost: fix section mismatch check for exported init/exit sections

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 <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
scripts/mod/modpost.c
This page took 0.052113 seconds and 4 git commands to generate.