aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-riscv.h
diff options
context:
space:
mode:
authorNelson Chu <nelson.chu@sifive.com>2021-01-04 10:12:45 +0800
committerNelson Chu <nelson.chu@sifive.com>2021-01-04 11:17:33 +0800
commit4c0e540e47e8ea26e20246c33c744306944b4cb8 (patch)
treeb0c211f9ec492e90888cad664152051df6fe1cf1 /bfd/elfxx-riscv.h
parente9cf3691bfa140469d52815a2307b00eecf7917c (diff)
downloadgdb-4c0e540e47e8ea26e20246c33c744306944b4cb8.zip
gdb-4c0e540e47e8ea26e20246c33c744306944b4cb8.tar.gz
gdb-4c0e540e47e8ea26e20246c33c744306944b4cb8.tar.bz2
RISC-V: Fix the merged orders of Z* extension for linker.
Similar to the commit 6729e2c2af2bd94408430734316597843718a484, we have to check the first char of the Z* extensions, to make sure that they follow the order of the standard extensions. bfd/ * elfxx-riscv.c (riscv_compare_subsets): Removed static. * elfxx-riscv.h: Add declaration. * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use riscv_compare_subsets to check the orders. (riscv_skip_prefix): Removed. (riscv_prefix_cmp): Removed.
Diffstat (limited to 'bfd/elfxx-riscv.h')
-rw-r--r--bfd/elfxx-riscv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elfxx-riscv.h b/bfd/elfxx-riscv.h
index 3a7c7b7..4d7a6dc 100644
--- a/bfd/elfxx-riscv.h
+++ b/bfd/elfxx-riscv.h
@@ -116,3 +116,6 @@ riscv_get_priv_spec_class_from_numbers (unsigned int,
extern const char *
riscv_get_priv_spec_name (enum riscv_priv_spec_class);
+
+extern int
+riscv_compare_subsets (const char *, const char *);