History

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.

Arnd Bergmann committed 5 years ago

Commit da836161 parent 3fb6d0e1 file · +1 −0Browse files

Unified · Split

scripts/lto-used-symbollist.txt+1−0
@@ -1,5 +1,6 @@
11 memcpy
22 memmove
33 memset
4+_mcount
45 __stack_chk_fail
56 __stack_chk_guard