diff options
author | Lulu Cai <cailulu@loongson.cn> | 2024-08-07 18:04:26 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-08-30 11:53:31 +0800 |
commit | 4311b2c9cfa2a15fc594fe6dad9a44f948490333 (patch) | |
tree | a1aa161cb342cbfdaa354b0b21658aa1102aa3a1 /gas/config | |
parent | 2e9df7573a1a7df1c34321c0837eb46b2be5d4a5 (diff) | |
download | gdb-4311b2c9cfa2a15fc594fe6dad9a44f948490333.zip gdb-4311b2c9cfa2a15fc594fe6dad9a44f948490333.tar.gz gdb-4311b2c9cfa2a15fc594fe6dad9a44f948490333.tar.bz2 |
LoongArch: LoongArch64 allows relocations to use 64-bit addends
Relocations using 64-bit addends allow larger constant offset address
calculations to be fused.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-loongarch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-loongarch.c b/gas/config/tc-loongarch.c index 5ca33c6..2d2fc74 100644 --- a/gas/config/tc-loongarch.c +++ b/gas/config/tc-loongarch.c @@ -1221,6 +1221,9 @@ append_fixp_and_insn (struct loongarch_cl_insn *ip) bfd_get_reloc_size (howto), &reloc_info[i].value, FALSE, r_type); } + /* Allow LoongArch 64 to use 64-bit addends. */ + if (LARCH_opts.ase_lp64) + ip->fixp[i]->fx_no_overflow = 1; } } |