diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2021-08-26 16:11:18 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-09-11 08:59:48 +0200 |
commit | 6f55ab36bef505b449723300a5a445ddc76a94d7 (patch) | |
tree | bf46ad2b00a9e6dbcf1ccafb56fdccdb66def2ec /arch/riscv/kernel/vmlinux.lds.S | |
parent | riscv: Enable BUILDTIME_TABLE_SORT (diff) | |
download | linux-6f55ab36bef505b449723300a5a445ddc76a94d7.tar.xz linux-6f55ab36bef505b449723300a5a445ddc76a94d7.zip |
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>
Diffstat (limited to 'arch/riscv/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/riscv/kernel/vmlinux.lds.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/kernel/vmlinux.lds.S b/arch/riscv/kernel/vmlinux.lds.S index 502d0826ecb1..5104f3a871e3 100644 --- a/arch/riscv/kernel/vmlinux.lds.S +++ b/arch/riscv/kernel/vmlinux.lds.S @@ -4,6 +4,8 @@ * Copyright (C) 2017 SiFive */ +#define RO_EXCEPTION_TABLE_ALIGN 16 + #ifdef CONFIG_XIP_KERNEL #include "vmlinux-xip.lds.S" #else @@ -112,8 +114,6 @@ SECTIONS *(.srodata*) } - EXCEPTION_TABLE(0x10) - . = ALIGN(SECTION_ALIGN); _data = .; |