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)
commitb150a4d12b919baf956b807aa305cf78df03d0fe
treeba2cae6103c8ce646db2b7dc93dd48912c21a77b
parent331771e836e6a32c8632d8cf5e2cdd94471258ad
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