]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/vmlinux.lds: Add an explicit symbol for the SRWX boundary
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 16 Sep 2022 04:41:24 +0000 (14:41 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 10:58:16 +0000 (20:58 +1000)
commit41e9ed489bf545b4f113e34c614ce4a1ec159d63
treeba2cae6103c8ce646db2b7dc93dd48912c21a77b
parent7f0e1734cac70d0a0975606e6d2f0786a3608285
powerpc/vmlinux.lds: Add an explicit symbol for the SRWX boundary

Currently __init_begin is used as the boundary for strict RWX between
executable/read-only text and data, and non-executable (after boot) code
and data.

But that's a little subtle, so add an explicit symbol to document that
the SRWX boundary lies there, and add a comment making it clear that
__init_begin must also begin there.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220916131422.318752-2-mpe@ellerman.id.au
arch/powerpc/include/asm/sections.h
arch/powerpc/kernel/vmlinux.lds.S
arch/powerpc/mm/book3s32/mmu.c
arch/powerpc/mm/book3s64/radix_pgtable.c