VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Sami Tolvanen <samitolvanen@google.com> 2020-12-11 10:46:23 -0800 committer: Kees Cook <keescook@chromium.org> 2021-01-14 08:21:09 -0800 commit: fbe078d397b4d59232f05fde977d3b1e7d0c2028 parent: dd2776222abb9893e5b5c237a2c8c880d8854cee
Commit Summary:
kbuild: lto: add a default list of used symbols
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index b77c60f8b963..5271138b8742 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -2297,6 +2297,7 @@ config TRIM_UNUSED_KSYMS
 config UNUSED_KSYMS_WHITELIST
 	string "Whitelist of symbols to keep in ksymtab"
 	depends on TRIM_UNUSED_KSYMS
+	default "scripts/lto-used-symbollist.txt" if LTO_CLANG
 	help
 	  By default, all unused exported symbols will be un-exported from the
 	  build when TRIM_UNUSED_KSYMS is selected.