riscv: Move EXCEPTION_TABLE to RO_DATA segment
authorJisheng Zhang <jszhang@kernel.org>
Thu, 26 Aug 2021 14:11:18 +0000 (22:11 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 11 Sep 2021 06:59:48 +0000 (23:59 -0700)
commit6f55ab36bef505b449723300a5a445ddc76a94d7
treebf46ad2b00a9e6dbcf1ccafb56fdccdb66def2ec
parent54fed35fd3939398be292e4090b0b1c5ff2238b4
riscv: Move EXCEPTION_TABLE to RO_DATA segment

_ex_table section is read-only, so move it to RO_DATA.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/vmlinux-xip.lds.S
arch/riscv/kernel/vmlinux.lds.S