summaryrefslogtreecommitdiff
path: root/bfd/elfxx-loongarch.h
diff options
context:
space:
mode:
authorliuzhensong <liuzhensong@loongson.cn>2022-02-21 14:13:43 +0800
committerliuzhensong <liuzhensong@loongson.cn>2022-03-20 09:37:12 +0800
commit748594bc07f39fda35aba5f46d6e058b42c9c49d (patch)
treef07619df95dfce87e45904ca3f96638f87a56bdc /bfd/elfxx-loongarch.h
parente36144c932b0ad0de4774b8bb2552178e4f2f2a6 (diff)
LoongArch: Use functions instead of magic numbers.
Replace the magic numbers in gas(tc-loongarch.c) and bfd(elfnn-loongarch.c) with the functions defined in the howto table(elfxx-loongarch.c). gas/ * config/tc-loongarch.c: use functions. bfd/ * elfnn-loongarch.c: use functions. * elfxx-loongarch.c: define functions. * elfxx-loongarch.h
Diffstat (limited to 'bfd/elfxx-loongarch.h')
-rw-r--r--bfd/elfxx-loongarch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elfxx-loongarch.h b/bfd/elfxx-loongarch.h
index 13699beed0..3b5c6361e0 100644
--- a/bfd/elfxx-loongarch.h
+++ b/bfd/elfxx-loongarch.h
@@ -29,3 +29,5 @@ loongarch_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code);
extern reloc_howto_type *
loongarch_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED, const char *r_name);
+
+bool loongarch_adjust_reloc_bitsfield (reloc_howto_type *howto, bfd_vma *fix_val);