]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: lto: add _mcount to list of used symbols
authorArnd Bergmann <arnd@arndb.de>
Thu, 25 Feb 2021 14:34:49 +0000 (15:34 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 27 Feb 2021 06:44:02 +0000 (15:44 +0900)
commit9d6374213a6173fe745108fca41a99ae84f1e65d
tree08b8cd6d8a901e22569721d06747177bd86c1719
parent5ca7609201e6c1c9d998ba39daf316fce958ebd4
kbuild: lto: add _mcount to list of used symbols

Some randconfig builds fail with undefined references to _mcount
when CONFIG_TRIM_UNUSED_KSYMS is set:

ERROR: modpost: "_mcount" [drivers/tee/optee/optee.ko] undefined!
ERROR: modpost: "_mcount" [drivers/fsi/fsi-occ.ko] undefined!
ERROR: modpost: "_mcount" [drivers/fpga/dfl-pci.ko] undefined!

Since there is already a list of symbols that get generated at link
time, add this one as well.

Fixes: ddbf5da45468 ("kbuild: lto: add a default list of used symbols")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/lto-used-symbollist.txt