[PATCH v2 0/2] riscv: improve __ex_table section handling

Palmer Dabbelt palmer at dabbelt.com
Sat Sep 11 00:10:37 PDT 2021


On Thu, 26 Aug 2021 07:09:52 PDT (-0700), jszhang3 at mail.ustc.edu.cn wrote:
> From: Jisheng Zhang <jszhang at kernel.org>
>
> Enable BUILDTIME_TABLE_SORT to sort the exception table at build time
> then move exception table to RO_DATA segment.
>
> Since v1:
>   - Only enable BUILDTIME_TABLE_SORT for MMU. Thank Palmer for catching
>     tinyconfig case.
>
> Jisheng Zhang (2):
>   riscv: Enable BUILDTIME_TABLE_SORT
>   riscv: Move EXCEPTION_TABLE to RO_DATA segment
>
>  arch/riscv/Kconfig                  | 1 +
>  arch/riscv/kernel/vmlinux-xip.lds.S | 1 -
>  arch/riscv/kernel/vmlinux.lds.S     | 4 ++--
>  scripts/sorttable.c                 | 1 +
>  4 files changed, 4 insertions(+), 3 deletions(-)

Thanks, this is on for-next.



More information about the linux-riscv mailing list