Make bfd_byte an int8_t, flagword a uint32_t
[binutils-gdb.git] / bfd / coff-loongarch64.c
index 8013737a08a71a30b5610e525349cd232cccee40..9136e06fea22a7ac85f20720a1ca2d7a7e5b2388 100644 (file)
@@ -1,5 +1,5 @@
 /* BFD back-end for LoongArch64 COFF files.
-   Copyright (C) 2022 Free Software Foundation, Inc.
+   Copyright (C) 2022-2023 Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
@@ -71,6 +71,10 @@ static reloc_howto_type pe_loongarch64_std_reloc_howto[] =
 #define bfd_pe_print_pdata      NULL
 #endif
 
+/* Handle include/coff/loongarch64.h external_reloc.  */
+#define SWAP_IN_RELOC_OFFSET   H_GET_32
+#define SWAP_OUT_RELOC_OFFSET  H_PUT_32
+
 /* Return TRUE if this relocation should
    appear in the output .reloc section.  */