From 748594bc07f39fda35aba5f46d6e058b42c9c49d Mon Sep 17 00:00:00 2001 From: liuzhensong Date: Mon, 21 Feb 2022 14:13:43 +0800 Subject: 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 --- bfd/elfxx-loongarch.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bfd/elfxx-loongarch.h') diff --git a/bfd/elfxx-loongarch.h b/bfd/elfxx-loongarch.h index 13699be..3b5c636 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); -- cgit v1.1