Skip to content

Commit a5fe13c

Browse files
damien-lemoalpalmer-dabbelt
authored andcommitted
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: 00cb41d ("riscv: add alignment for text, rodata and data sections") Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Anup Patel <[email protected]> Reviewed-by: Wladimir J. van der Laan <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 7d0ce3b commit a5fe13c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ config RISCV
6060
select ARCH_HAS_GIGANTIC_PAGE
6161
select ARCH_HAS_SET_DIRECT_MAP
6262
select ARCH_HAS_SET_MEMORY
63-
select ARCH_HAS_STRICT_KERNEL_RWX
63+
select ARCH_HAS_STRICT_KERNEL_RWX if MMU
6464
select ARCH_WANT_HUGE_PMD_SHARE if 64BIT
6565
select SPARSEMEM_STATIC if 32BIT
6666
select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU

0 commit comments

Comments
 (0)