]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/ChangeLog
RISC-V: Fix the merged orders of Z* extension for linker.
authorNelson Chu <nelson.chu@sifive.com>
Mon, 4 Jan 2021 02:12:45 +0000 (10:12 +0800)
committerNelson Chu <nelson.chu@sifive.com>
Mon, 4 Jan 2021 03:17:33 +0000 (11:17 +0800)
commit4c0e540e47e8ea26e20246c33c744306944b4cb8
treeb0c211f9ec492e90888cad664152051df6fe1cf1
parente9cf3691bfa140469d52815a2307b00eecf7917c
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.
bfd/ChangeLog
bfd/elfnn-riscv.c
bfd/elfxx-riscv.c
bfd/elfxx-riscv.h