mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
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: fbe078d397
("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>
This commit is contained in:
parent
3fb6d0e00e
commit
da83616bcd
@ -1,5 +1,6 @@
|
||||
memcpy
|
||||
memmove
|
||||
memset
|
||||
_mcount
|
||||
__stack_chk_fail
|
||||
__stack_chk_guard
|
||||
|
Loading…
Reference in New Issue
Block a user