modpost: stop symbol preloading for modversion CRC
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 14 Nov 2019 17:42:24 +0000 (02:42 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 23 Nov 2019 06:46:38 +0000 (15:46 +0900)
commit1743694eb2357b47cd9951079f9ab0d728c916bf
treef67c68b27da8917a996c4d947f55224668134a48
parent9bd2a099d7224281dd7756efa5c79df4f3fe8daf
modpost: stop symbol preloading for modversion CRC

It is complicated to add mocked-up symbols for pre-handling CRC.
Handle CRC after all the export symbols in the relevant module
are registered.

Call handle_modversion() after the handle_symbol() iteration.

In some cases, I see atand-alone __crc_* without __ksymtab_*.
For example, ARCH=arm allyesconfig produces __crc_ccitt_veneer and
__crc_itu_t_veneer. I guess they come from crc_ccitt, crc_itu_t,
respectively. Since __*_veneer are auto-generated symbols, just
ignore them.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/mod/modpost.c