diff options
author | Nelson Chu <nelson.chu@sifive.com> | 2021-04-12 17:59:57 +0800 |
---|---|---|
committer | Nelson Chu <nelson.chu@sifive.com> | 2021-04-12 18:04:12 +0800 |
commit | f5b10973531cdda7e1aba7496f70476b5146fcf8 (patch) | |
tree | cf862a980d3eb9644dc9e453e4e692b226367090 /bfd | |
parent | f0bae2552db1dd4f1995608fbf6648fcee4e9e0c (diff) | |
download | binutils-f5b10973531cdda7e1aba7496f70476b5146fcf8.zip binutils-f5b10973531cdda7e1aba7496f70476b5146fcf8.tar.gz binutils-f5b10973531cdda7e1aba7496f70476b5146fcf8.tar.bz2 |
RISC-V: The version of i-ext should be RISCV_UNKNOWN_VERSION when expanding g-ext.
Fix the wrong version of i-ext when expanding g-ext. This was changed by
the previous patch accidently.
bfd/
* elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of
i-ext when expanding g-ext.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elfxx-riscv.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 58a862c..cb85678 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2021-04-12 Nelson Chu <nelson.chu@sifive.com> + * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of + i-ext when expanding g-ext. + +2021-04-12 Nelson Chu <nelson.chu@sifive.com> + * elfxx-riscv.c (riscv_ext_dont_care_version): Removed. (riscv_parse_add_subset): Always add the implicit extensions, even if their versions are RISCV_UNKNOWN_VERSION. diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index ef55d83..13719e5 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -1514,8 +1514,8 @@ riscv_parse_std_ext (riscv_parse_subset_t *rps, &minor_version, true); /* Expand g to imafd. */ riscv_parse_add_subset (rps, "i", - major_version, - minor_version, false); + RISCV_UNKNOWN_VERSION, + RISCV_UNKNOWN_VERSION, false); for ( ; *std_exts != 'q'; std_exts++) { subset[0] = *std_exts; |