]> git.baikalelectronics.ru Git - kernel.git/commitdiff
riscv: Enable BUILDTIME_TABLE_SORT
authorJisheng Zhang <jszhang@kernel.org>
Thu, 26 Aug 2021 14:10:29 +0000 (22:10 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 11 Sep 2021 06:59:44 +0000 (23:59 -0700)
Enable BUILDTIME_TABLE_SORT to sort the exception table at build time
rather than during boot.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig
scripts/sorttable.c

index baf60fc350a47f3a275375947664cc8c14aecd58..c1abbc876e5b847244a846138b6bbc818135463a 100644 (file)
@@ -41,6 +41,7 @@ config RISCV
        select ARCH_WANT_FRAME_POINTERS
        select ARCH_WANT_HUGE_PMD_SHARE if 64BIT
        select BINFMT_FLAT_NO_DATA_START_OFFSET if !MMU
+       select BUILDTIME_TABLE_SORT if MMU
        select CLONE_BACKWARDS
        select CLINT_TIMER if !MMU
        select COMMON_CLK
index 0ef3abfc4a51b9fe52f7e7ddc2e94d912c18eb17..f355869c65cd10ef77c2faff6c90b3ca09692c21 100644 (file)
@@ -349,6 +349,7 @@ static int do_file(char const *const fname, void *addr)
        case EM_ARM:
        case EM_MICROBLAZE:
        case EM_MIPS:
+       case EM_RISCV:
        case EM_XTENSA:
                break;
        default: