aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authormengqinggang <mengqinggang@loongson.cn>2024-01-26 10:50:57 +0000
committerNick Clifton <nickc@redhat.com>2024-01-26 10:50:57 +0000
commit3988bf614f9f8761f51a5c7922977a60cb8402ff (patch)
tree18961c4432b3c0d7f1c58c902a3b4eed5b1fddfd /opcodes
parent75558017d5ee7c6f99fb3e68ea709744f0c3501e (diff)
downloadfsf-binutils-gdb-3988bf614f9f8761f51a5c7922977a60cb8402ff.zip
fsf-binutils-gdb-3988bf614f9f8761f51a5c7922977a60cb8402ff.tar.gz
fsf-binutils-gdb-3988bf614f9f8761f51a5c7922977a60cb8402ff.tar.bz2
Backport commits 969f5c0e1 (LoongArch: gas: Add support for s9 register) and a0aa6f4ab (LoongArch: ld: Add support for TLS LE symbol with addend) to 2.42 branch.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/loongarch-opc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/opcodes/loongarch-opc.c b/opcodes/loongarch-opc.c
index 490c689..6bd436f 100644
--- a/opcodes/loongarch-opc.c
+++ b/opcodes/loongarch-opc.c
@@ -49,6 +49,15 @@ const char *const loongarch_r_alias[32] =
"$s1", "$s2", "$s3", "$s4", "$s5", "$s6", "$s7", "$s8",
};
+/* Add support for $s9. */
+const char *const loongarch_r_alias_1[32] =
+{
+ "", "", "", "", "", "", "", "",
+ "", "", "", "", "", "", "", "",
+ "", "", "", "", "", "", "$s9", "",
+ "", "", "", "", "", "", "", "",
+};
+
const char *const loongarch_r_alias_deprecated[32] =
{
"", "", "", "", "$v0", "$v1", "", "", "", "", "", "", "", "", "", "",