]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: select ARCH_HAS_STRICT_KERNEL_RWX only if MMU
authorDamien Le Moal <damien.lemoal@wdc.com>
Mon, 13 Apr 2020 09:04:49 +0000 (18:04 +0900)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 24 Apr 2020 18:40:40 +0000 (11:40 -0700)
commit4339bff0c8792175f950df31836cf620d40deb4d
tree603c6682c5eb85b70bce186e0968bc156ad0c47b
parent611bb25049072a2ae4e517fc844d1aca8c168616
riscv: select ARCH_HAS_STRICT_KERNEL_RWX only if MMU

ARCH_HAS_STRICT_KERNEL_RWX is not useful for NO-MMU systems.
Furthermore, has this option leads to very large boot image files on
64bits architectures, do not enable this option to allow supporting
no-mmu platforms such as the Kendryte K210 SoC based boards.

Fixes: 0a338eb3fc80 ("riscv: add alignment for text, rodata and data sections")
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig