projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debug info for function in Windows PE binary on wrong instruction
[binutils-gdb.git]
/
bfd
/
cpu-riscv.c
diff --git
a/bfd/cpu-riscv.c
b/bfd/cpu-riscv.c
index 025e94afd34dcaac3f4205c263ea107dd350448e..5deff968a740752b6c6bfa267c99ac01ec39176c 100644
(file)
--- a/
bfd/cpu-riscv.c
+++ b/
bfd/cpu-riscv.c
@@
-1,5
+1,5
@@
/* BFD backend for RISC-V
/* BFD backend for RISC-V
- Copyright (C) 2011-202
1
Free Software Foundation, Inc.
+ Copyright (C) 2011-202
2
Free Software Foundation, Inc.
Contributed by Andrew Waterman (andrew@sifive.com).
Based on MIPS target.
Contributed by Andrew Waterman (andrew@sifive.com).
Based on MIPS target.
@@
-117,6
+117,7
@@
const struct riscv_spec riscv_priv_specs[] =
{"1.9.1", PRIV_SPEC_CLASS_1P9P1},
{"1.10", PRIV_SPEC_CLASS_1P10},
{"1.11", PRIV_SPEC_CLASS_1P11},
{"1.9.1", PRIV_SPEC_CLASS_1P9P1},
{"1.10", PRIV_SPEC_CLASS_1P10},
{"1.11", PRIV_SPEC_CLASS_1P11},
+ {"1.12", PRIV_SPEC_CLASS_1P12},
};
/* Get the corresponding CSR version class by giving privilege
};
/* Get the corresponding CSR version class by giving privilege
@@
-140,3
+141,12
@@
riscv_get_priv_spec_class_from_numbers (unsigned int major,
RISCV_GET_PRIV_SPEC_CLASS (buf, class_t);
*class = class_t;
}
RISCV_GET_PRIV_SPEC_CLASS (buf, class_t);
*class = class_t;
}
+
+/* Define mapping symbols for riscv. */
+
+bool
+riscv_elf_is_mapping_symbols (const char *name)
+{
+ return (!strncmp (name, "$d", 2)
+ || !strncmp (name, "$x", 2));
+}