summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-02-25 15:34:49 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2021-02-27 15:44:02 +0900
commitda83616bcd3fa84233f6e37e2cf8cbfa979c6927 (patch)
tree08b8cd6d8a901e22569721d06747177bd86c1719 /scripts
parent3fb6d0e00efc958d01c2f109c8453033a2d96796 (diff)
downloadlinux-stable-da83616bcd3fa84233f6e37e2cf8cbfa979c6927.tar.gz
linux-stable-da83616bcd3fa84233f6e37e2cf8cbfa979c6927.tar.bz2
linux-stable-da83616bcd3fa84233f6e37e2cf8cbfa979c6927.zip
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: fbe078d397b4 ("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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lto-used-symbollist.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lto-used-symbollist.txt b/scripts/lto-used-symbollist.txt
index 38e7bb9ebaae..406ada65e926 100644
--- a/scripts/lto-used-symbollist.txt
+++ b/scripts/lto-used-symbollist.txt
@@ -1,5 +1,6 @@
memcpy
memmove
memset
+_mcount
__stack_chk_fail
__stack_chk_guard