aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/configs
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2025-05-26 18:07:51 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2025-06-06 05:40:24 +0900
commit81a93bf93f0e5963d8695a3596ac50b5ceea87c3 (patch)
tree4a6653b484b054ab0ab5c3f3356f059fe775ccd7 /kernel/configs
parentdocs/core-api/symbol-namespaces: drop table of contents and section numbering (diff)
downloadlinux-rng-81a93bf93f0e5963d8695a3596ac50b5ceea87c3.tar.xz
linux-rng-81a93bf93f0e5963d8695a3596ac50b5ceea87c3.zip
tinyconfig: enable CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
This CONFIG option, if supported by the architecture, helps reduce the size of vmlinux. For example, the size of vmlinux with ARCH=arm tinyconfig decreases as follows: text data bss dec hex filename 631684 104500 18176 754360 b82b8 vmlinux.before 455316 93404 15472 564192 89be0 vmlinux.after Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'kernel/configs')
-rw-r--r--kernel/configs/tiny.config1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/configs/tiny.config b/kernel/configs/tiny.config
index b753695c5a8f..5dd0f0a34a73 100644
--- a/kernel/configs/tiny.config
+++ b/kernel/configs/tiny.config
@@ -2,3 +2,4 @@ CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_KERNEL_XZ=y
CONFIG_SLUB=y
CONFIG_SLUB_TINY=y
+CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y