File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -2012,6 +2012,22 @@ config MODULE_COMPRESS_XZ
2012
2012
2013
2013
endchoice
2014
2014
2015
+ config TRIM_UNUSED_KSYMS
2016
+ bool "Trim unused exported kernel symbols"
2017
+ depends on MODULES && !UNUSED_SYMBOLS
2018
+ help
2019
+ The kernel and some modules make many symbols available for
2020
+ other modules to use via EXPORT_SYMBOL() and variants. Depending
2021
+ on the set of modules being selected in your kernel configuration,
2022
+ many of those exported symbols might never be used.
2023
+
2024
+ This option allows for unused exported symbols to be dropped from
2025
+ the build. In turn, this provides the compiler more opportunities
2026
+ (especially when using LTO) for optimizing the code and reducing
2027
+ binary size. This might have some security advantages as well.
2028
+
2029
+ If unsure say N.
2030
+
2015
2031
endif # MODULES
2016
2032
2017
2033
config MODULES_TREE_LOOKUP
You can’t perform that action at this time.
0 commit comments