summaryrefslogtreecommitdiffstats
path: root/scripts/sorttable.c
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@kernel.org>2021-11-18 12:26:05 +0100
committerPalmer Dabbelt <palmer@rivosinc.com>2022-01-06 02:52:54 +0100
commit2bf847db0c7437c28b10fba2981b9a7db4b4e0e2 (patch)
treef0248762ab49f86e123c5ac25f457e3565677d2b /scripts/sorttable.c
parentriscv: extable: consolidate definitions (diff)
downloadlinux-2bf847db0c7437c28b10fba2981b9a7db4b4e0e2.tar.xz
linux-2bf847db0c7437c28b10fba2981b9a7db4b4e0e2.zip
riscv: extable: add `type` and `data` fields
This is a riscv port of commit d6e2cc564775 ("arm64: extable: add `type` and `data` fields"). Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'scripts/sorttable.c')
-rw-r--r--scripts/sorttable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sorttable.c b/scripts/sorttable.c
index f4a8255036b5..82b162b3941b 100644
--- a/scripts/sorttable.c
+++ b/scripts/sorttable.c
@@ -337,6 +337,7 @@ static int do_file(char const *const fname, void *addr)
switch (r2(&ehdr->e_machine)) {
case EM_386:
case EM_AARCH64:
+ case EM_RISCV:
case EM_X86_64:
custom_sort = sort_relative_table_with_data;
break;
@@ -346,7 +347,6 @@ static int do_file(char const *const fname, void *addr)
case EM_PARISC:
case EM_PPC:
case EM_PPC64:
- case EM_RISCV:
custom_sort = sort_relative_table;
break;
case EM_ARCOMPACT: