Skip to content

Commit da83616

Browse files
arndbmasahir0y
authored andcommitted
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: fbe078d ("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>
1 parent 3fb6d0e commit da83616

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/lto-used-symbollist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
memcpy
22
memmove
33
memset
4+
_mcount
45
__stack_chk_fail
56
__stack_chk_guard

0 commit comments

Comments
 (0)