RISC-V: Don't report the mismatched version warning for the implicit extensions.
authorNelson Chu <nelson.chu@sifive.com>
Tue, 13 Apr 2021 04:32:16 +0000 (12:32 +0800)
committerNelson Chu <nelson.chu@sifive.com>
Tue, 13 Apr 2021 04:49:51 +0000 (12:49 +0800)
commite3839c100fdb15d05e6a2fd44557ffdd6fb921b8
tree12276e778432ad0ca3459ec5bc2fe3a59d385113
parent8d85d1f53f28f5ec020add7326055f73dce6ced0
RISC-V: Don't report the mismatched version warning for the implicit extensions.

bfd/
    * elfnn-riscv.c (riscv_version_mismatch): Do not report the warning
    when the version of input or output is RISCV_UNKNOWN_VERSION, since
    the extension is added implicitly.
    * elfxx-riscv.c: Updated the obsolete comments.
    (RISCV_UNKNOWN_VERSION): Moved to elfxx-riscv.h.
    * elfxx-riscv.h (RISCV_UNKNOWN_VERSION): Added.
bfd/ChangeLog
bfd/elfnn-riscv.c
bfd/elfxx-riscv.c
bfd/elfxx-riscv.h