Commit 6f55ab36 authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Palmer Dabbelt

riscv: Move EXCEPTION_TABLE to RO_DATA segment

_ex_table section is read-only, so move it to RO_DATA.
Signed-off-by: default avatarJisheng Zhang <jszhang@kernel.org>
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent 54fed35f
...@@ -121,7 +121,6 @@ SECTIONS ...@@ -121,7 +121,6 @@ SECTIONS
} }
BSS_SECTION(PAGE_SIZE, PAGE_SIZE, 0) BSS_SECTION(PAGE_SIZE, PAGE_SIZE, 0)
EXCEPTION_TABLE(0x10)
.rel.dyn : AT(ADDR(.rel.dyn) - LOAD_OFFSET) { .rel.dyn : AT(ADDR(.rel.dyn) - LOAD_OFFSET) {
*(.rel.dyn*) *(.rel.dyn*)
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
* Copyright (C) 2017 SiFive * Copyright (C) 2017 SiFive
*/ */
#define RO_EXCEPTION_TABLE_ALIGN 16
#ifdef CONFIG_XIP_KERNEL #ifdef CONFIG_XIP_KERNEL
#include "vmlinux-xip.lds.S" #include "vmlinux-xip.lds.S"
#else #else
...@@ -112,8 +114,6 @@ SECTIONS ...@@ -112,8 +114,6 @@ SECTIONS
*(.srodata*) *(.srodata*)
} }
EXCEPTION_TABLE(0x10)
. = ALIGN(SECTION_ALIGN); . = ALIGN(SECTION_ALIGN);
_data = .; _data = .;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment