aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-riscv.h
diff options
context:
space:
mode:
authorNelson Chu <nelson.chu@sifive.com>2021-04-13 12:32:16 +0800
committerNelson Chu <nelson.chu@sifive.com>2021-04-13 12:49:51 +0800
commite3839c100fdb15d05e6a2fd44557ffdd6fb921b8 (patch)
tree12276e778432ad0ca3459ec5bc2fe3a59d385113 /bfd/elfxx-riscv.h
parent8d85d1f53f28f5ec020add7326055f73dce6ced0 (diff)
downloadgdb-e3839c100fdb15d05e6a2fd44557ffdd6fb921b8.zip
gdb-e3839c100fdb15d05e6a2fd44557ffdd6fb921b8.tar.gz
gdb-e3839c100fdb15d05e6a2fd44557ffdd6fb921b8.tar.bz2
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.
Diffstat (limited to 'bfd/elfxx-riscv.h')
-rw-r--r--bfd/elfxx-riscv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elfxx-riscv.h b/bfd/elfxx-riscv.h
index 2955b75..ff18ff6 100644
--- a/bfd/elfxx-riscv.h
+++ b/bfd/elfxx-riscv.h
@@ -24,6 +24,8 @@
#include "elf/internal.h"
#include "opcode/riscv.h"
+#define RISCV_UNKNOWN_VERSION -1
+
extern reloc_howto_type *
riscv_reloc_name_lookup (bfd *, const char *);