diff options
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/cpu-riscv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/cpu-riscv.c b/bfd/cpu-riscv.c index a478797..5ec766d 100644 --- a/bfd/cpu-riscv.c +++ b/bfd/cpu-riscv.c @@ -147,6 +147,7 @@ riscv_get_priv_spec_class_from_numbers (unsigned int major, bool riscv_elf_is_mapping_symbols (const char *name) { - return (!strncmp (name, "$d", 2) - || !strncmp (name, "$x", 2)); + return (!strcmp (name, "$d") + || !strcmp (name, "$x") + || !strncmp (name, "$xrv", 4)); } |