Skip to content

Commit 4fbdd56

Browse files
fifteenhexgeertu
authored andcommitted
m68k: Enable dead code elimination
Allow the experimental dead code elimination config to be enabled. For my 68000 nommu config this frees up a few hundred K of memory so seems worth while. Boot and build tested on nommu and mmu enabled configs. Before: Memory: 5388K/8192K available (1986K kernel code, 114K rwdata, 244K rodata, 92K init, 41K bss, 2624K reserved, 0K cma-reserved) After Memory: 5684K/8192K available (1714K kernel code, 112K rwdata, 228K rodata, 92K init, 37K bss, 2328K reserved, 0K cma-reserved) Signed-off-by: Daniel Palmer <[email protected]> Acked-by: Greg Ungerer <[email protected]> Tested-by: Finn Thain <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 83f672a commit 4fbdd56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/m68k/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ config M68K
3232
select HAVE_ASM_MODVERSIONS
3333
select HAVE_DEBUG_BUGVERBOSE
3434
select HAVE_EFFICIENT_UNALIGNED_ACCESS if !CPU_HAS_NO_UNALIGNED
35+
select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
3536
select HAVE_MOD_ARCH_SPECIFIC
3637
select HAVE_UID16
3738
select MMU_GATHER_NO_RANGE if MMU

0 commit comments

Comments
 (0)