riscv: move exception table immediately after RO_DATA
authorZong Li <zong.li@sifive.com>
Mon, 9 Mar 2020 16:55:39 +0000 (00:55 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 26 Mar 2020 16:24:39 +0000 (09:24 -0700)
commitbd3d914d16aaf82412771a2d673299d4b5e3aeda
tree9cb65bc5ffc29049bbbe23586cfc755788922207
parent5fde3db5eb028b95aeefa1ab192d36800414e8b8
riscv: move exception table immediately after RO_DATA

Move EXCEPTION_TABLE immediately after RO_DATA. Make it easy to set the
attribution of the sections which should be read-only at a time.
Add _data to specify the start of data section with write permission.
This patch is prepared for STRICT_KERNEL_RWX support.

Signed-off-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/vmlinux.lds.S