RISC-V: Fix the order checking for Z* extension.
authorNelson Chu <nelson.chu@sifive.com>
Fri, 20 Nov 2020 15:42:28 +0000 (23:42 +0800)
committerNelson Chu <nelson.chu@sifive.com>
Tue, 1 Dec 2020 07:24:10 +0000 (15:24 +0800)
commit6729e2c2af2bd94408430734316597843718a484
tree6d90a85ca4307af4915111cd30cae2efc6b20b1a
parent00d4d1b0a3a4d26c9d741b14e601ed2b86fe39ee
RISC-V: Fix the order checking for Z* extension.

We have to check the first char of the Z* extensions, to make sure that
they follow the order of the standard extensions.  But we can not have
the testcases for this patch, since we only support the zicsr and zifencei
so far, both of them are the sub extensions of i.

bfd/
* elfxx-riscv.c (riscv_parse_prefixed_ext): Use riscv_compare_subsets
to check the Z* extensions' order.
bfd/ChangeLog
bfd/elfxx-riscv.c