Closed onnokort closed 1 year ago
This will reduce kernel size from ~21MiB to ~5MiB as it removes huge alignment sections in the linker script. For details, see symbol SECTION_ALIGN in
arch/riscv/include/asm/set_memory.h
and
arch/riscv/kernel/vmlinux.lds.S
It should be noted, however, that this might trade kernel binary load size for security in some settings.
Thank @onnokort for contributing!
This will reduce kernel size from ~21MiB to ~5MiB as it removes huge alignment sections in the linker script. For details, see symbol SECTION_ALIGN in
arch/riscv/include/asm/set_memory.h
and
arch/riscv/kernel/vmlinux.lds.S
It should be noted, however, that this might trade kernel binary load size for security in some settings.