diff options
author | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-03-28 22:12:01 +0900 |
---|---|---|
committer | Nelson Chu <nelson.chu@sifive.com> | 2022-05-19 11:31:31 +0800 |
commit | c4dd8eb523fae5c9d312f4b7b21377eec66e70c3 (patch) | |
tree | 7e38c1a0c86faf6b8fca85a0fd3f9f24cdad544c | |
parent | 4f02f4d802c9bc4d6885891fd2231a8390627e7e (diff) | |
download | gdb-c4dd8eb523fae5c9d312f4b7b21377eec66e70c3.zip gdb-c4dd8eb523fae5c9d312f4b7b21377eec66e70c3.tar.gz gdb-c4dd8eb523fae5c9d312f4b7b21377eec66e70c3.tar.bz2 |
RISC-V: Fix canonical extension order (K and J)
This commit fixes canonical extension order to follow the RISC-V ISA
Manual draft-20210402-1271737 or later.
bfd/ChangeLog:
* elfxx-riscv.c (riscv_recognized_prefixed_ext): Fix "K" extension
prefix to be placed before "J".
-rw-r--r-- | bfd/elfxx-riscv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index 05e8272..069832f 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -1341,7 +1341,7 @@ riscv_recognized_prefixed_ext (const char *ext) } /* Canonical order for single letter extensions. */ -static const char riscv_ext_canonical_order[] = "eigmafdqlcbjktpvn"; +static const char riscv_ext_canonical_order[] = "eigmafdqlcbkjtpvn"; /* Array is used to compare the orders of standard extensions quickly. */ static int riscv_ext_order[26] = {0}; |