Skip to content

Commit 81a93bf

Browse files
committed
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 <[email protected]>
1 parent 4061743 commit 81a93bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/configs/tiny.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ CONFIG_CC_OPTIMIZE_FOR_SIZE=y
22
CONFIG_KERNEL_XZ=y
33
CONFIG_SLUB=y
44
CONFIG_SLUB_TINY=y
5+
CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y

0 commit comments

Comments
 (0)