aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authormengqinggang <mengqinggang@loongson.cn>2022-12-01 16:01:27 +0800
committerliuzhensong <liuzhensong@loongson.cn>2023-05-30 19:56:43 +0800
commit7ad9de1188609dee11a5c196869fca62da8154a3 (patch)
tree82dd3ab9dc7cc1f94429389d0942722993a99ec5 /opcodes
parent1b6fccd28db14fffe75ff6755307047ef932c81e (diff)
downloadgdb-7ad9de1188609dee11a5c196869fca62da8154a3.zip
gdb-7ad9de1188609dee11a5c196869fca62da8154a3.tar.gz
gdb-7ad9de1188609dee11a5c196869fca62da8154a3.tar.bz2
LoongArch: opcodes: Add support for linker relaxation.
Set gas default to enable relax. opcodes/ChangeLog: * loongarch-opc.c (struct loongarch_ASEs_option): New member relax with the default value 1.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/loongarch-opc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/opcodes/loongarch-opc.c b/opcodes/loongarch-opc.c
index 39d724a..573b691 100644
--- a/opcodes/loongarch-opc.c
+++ b/opcodes/loongarch-opc.c
@@ -22,7 +22,10 @@
#include "opcode/loongarch.h"
#include "libiberty.h"
-struct loongarch_ASEs_option LARCH_opts;
+struct loongarch_ASEs_option LARCH_opts =
+{
+ .relax = 1
+};
size_t
loongarch_insn_length (insn_t insn ATTRIBUTE_UNUSED)