diff options
author | Balbir Singh <bsingharora@gmail.com> | 2017-06-28 19:04:06 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-07-03 15:12:19 +0200 |
commit | d924cc3feda9c2bea8164930899f367ce249cbbf (patch) | |
tree | 025522681a994bff1154f47e97402dc63f7a9aa8 /arch/powerpc/mm/pgtable_64.c | |
parent | powerpc/lib/code-patching: Use alternate map for patch_instruction() (diff) | |
download | linux-d924cc3feda9c2bea8164930899f367ce249cbbf.tar.xz linux-d924cc3feda9c2bea8164930899f367ce249cbbf.zip |
powerpc/vmlinux.lds: Align __init_begin to 16M
For CONFIG_STRICT_KERNEL_RWX align __init_begin to 16M. We use 16M
since its the larger of 2M on radix and 16M on hash for our linear
mapping. The plan is to have .text, .rodata and everything upto
__init_begin marked as RX. Note we still have executable read only
data. We could further align rodata to another 16M boundary. I've used
keeping text plus rodata as read-only-executable as a trade-off to
doing read-only-executable for text and read-only for rodata.
We don't use multi PT_LOAD in PHDRS because we are not sure if all
bootloaders support them. This patch keeps PHDRS in vmlinux.lds.S as
the same they are with just one PT_LOAD for all of the kernel marked
as RWX (7).
mpe: What this means is the added alignment bloats the resulting
binary on disk, a powernv kernel goes from 17M to 22M.
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/pgtable_64.c')
0 files changed, 0 insertions, 0 deletions