diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2022-02-21 23:14:31 +0800 |
---|---|---|
committer | Nelson Chu <nelson.chu@sifive.com> | 2022-02-22 09:54:09 +0800 |
commit | 3a3e333f65483b864bf2624392f8aa4a88c7a498 (patch) | |
tree | e97bc91ea93a4662daed9d1e7ff72cd9a16e2b67 /libctf/ctf-open-bfd.c | |
parent | fadefdc51882bcf1cf04138facb29f390be9a04e (diff) | |
download | gdb-3a3e333f65483b864bf2624392f8aa4a88c7a498.zip gdb-3a3e333f65483b864bf2624392f8aa4a88c7a498.tar.gz gdb-3a3e333f65483b864bf2624392f8aa4a88c7a498.tar.bz2 |
RISC-V: Maintain a string to hold the canonical order
Using dummy entry in riscv_supported_std_ext cause confusing and wrongly
support `b` and `k` extensions.
bfd/
* elfxx-riscv.c (riscv_supported_std_ext): Drop unsupported
extensions.
(riscv_ext_canonical_order): New.
(riscv_init_ext_order): Use riscv_ext_canonical_order rather
than riscv_supported_std_ext to compute canonical order.
V2 Changes:
- Use `*ext` rather than `*ext != NULL` for checking is reach end of
string.
Diffstat (limited to 'libctf/ctf-open-bfd.c')
0 files changed, 0 insertions, 0 deletions