tinyconfig: enable CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 26 May 2025 09:07:51 +0000 (18:07 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 5 Jun 2025 20:40:24 +0000 (05:40 +0900)
commit81a93bf93f0e5963d8695a3596ac50b5ceea87c3
tree4a6653b484b054ab0ab5c3f3356f059fe775ccd7
parent40617439d572645207c1866dfb086de0be438a14
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>
kernel/configs/tiny.config