Skip to content

Commit 54fed35

Browse files
xhackerustcpalmer-dabbelt
authored andcommitted
riscv: Enable BUILDTIME_TABLE_SORT
Enable BUILDTIME_TABLE_SORT to sort the exception table at build time rather than during boot. Signed-off-by: Jisheng Zhang <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent cbba178 commit 54fed35

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ config RISCV
4141
select ARCH_WANT_FRAME_POINTERS
4242
select ARCH_WANT_HUGE_PMD_SHARE if 64BIT
4343
select BINFMT_FLAT_NO_DATA_START_OFFSET if !MMU
44+
select BUILDTIME_TABLE_SORT if MMU
4445
select CLONE_BACKWARDS
4546
select CLINT_TIMER if !MMU
4647
select COMMON_CLK

scripts/sorttable.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ static int do_file(char const *const fname, void *addr)
349349
case EM_ARM:
350350
case EM_MICROBLAZE:
351351
case EM_MIPS:
352+
case EM_RISCV:
352353
case EM_XTENSA:
353354
break;
354355
default:

0 commit comments

Comments
 (0)