aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorcailulu <cailulu@loongson.cn>2023-09-28 16:01:52 +0800
committerliuzhensong <liuzhensong@loongson.cn>2023-10-08 09:18:12 +0800
commit816029e06768c100704a877d990922b4ef2bff3e (patch)
tree7803522487156da05f1bff9959064e3061394da4 /include
parentb68c661196e33928f1bac1702ff3abeeb0c6a2dc (diff)
downloadgdb-816029e06768c100704a877d990922b4ef2bff3e.zip
gdb-816029e06768c100704a877d990922b4ef2bff3e.tar.gz
gdb-816029e06768c100704a877d990922b4ef2bff3e.tar.bz2
as: add option for generate R_LARCH_32/64_PCREL.
Some older kernels cannot handle the newly generated R_LARCH_32/64_PCREL, so the assembler generates R_LARCH_ADD32/64+R_LARCH_SUB32/64 by default, and use the assembler option mthin-add-sub to generate R_LARCH_32/64_PCREL as much as possible. The Option of mthin-add-sub does not affect the generation of R_LARCH_32_PCREL relocation in .eh_frame.
Diffstat (limited to 'include')
-rw-r--r--include/opcode/loongarch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/opcode/loongarch.h b/include/opcode/loongarch.h
index e145db5..2ed4082 100644
--- a/include/opcode/loongarch.h
+++ b/include/opcode/loongarch.h
@@ -236,6 +236,7 @@ dec2 : [1-9][0-9]?
#define ase_gabs isa.use_la_global_with_abs
int relax;
+ int thin_add_sub;
} LARCH_opts;
extern size_t loongarch_insn_length (insn_t insn);