RISC-V: Fix canonical extension order (K and J)
authorTsukasa OI <research_trasio@irq.a4lg.com>
Mon, 28 Mar 2022 13:12:01 +0000 (22:12 +0900)
committerNelson Chu <nelson.chu@sifive.com>
Thu, 19 May 2022 03:31:31 +0000 (11:31 +0800)
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".

bfd/elfxx-riscv.c

index 05e8272e0e9d893fee72d4f13b62547b8dd402e5..069832fece7624ddb67d19e8c7ed14cc2a16d3e1 100644 (file)
@@ -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};