diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2022-09-16 14:41:24 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-09-26 20:58:16 +1000 |
commit | b150a4d12b919baf956b807aa305cf78df03d0fe (patch) | |
tree | ba2cae6103c8ce646db2b7dc93dd48912c21a77b /arch/powerpc/include | |
parent | 331771e836e6a32c8632d8cf5e2cdd94471258ad (diff) | |
download | linux-b150a4d12b919baf956b807aa305cf78df03d0fe.tar.gz linux-b150a4d12b919baf956b807aa305cf78df03d0fe.tar.bz2 linux-b150a4d12b919baf956b807aa305cf78df03d0fe.zip |
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
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/sections.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/sections.h b/arch/powerpc/include/asm/sections.h index babda2677b30..9c00c9c0ca8f 100644 --- a/arch/powerpc/include/asm/sections.h +++ b/arch/powerpc/include/asm/sections.h @@ -13,6 +13,7 @@ typedef struct func_desc func_desc_t; #include <asm-generic/sections.h> extern char __head_end[]; +extern char __srwx_boundary[]; /* Patch sites */ extern s32 patch__call_flush_branch_caches1; |