author: Linus Torvalds <torvalds@linux-foundation.org> 2021-02-23 09:28:51 -0800
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-02-23 09:28:51 -0800
commit: 79db4d2293eba2ce6265a341bedf6caecad5eeb3
parent: 3b9cdafb5358eb9f3790de2f728f765fef100731
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 47a3d6502fbd..57f859ea79b9 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -2307,6 +2307,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.