diff options
author | Alan Modra <amodra@gmail.com> | 2022-08-19 10:23:11 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-08-19 10:30:45 +0930 |
commit | 866318daa306987c1d57f0b79241e7f38fb9dd4d (patch) | |
tree | f0b5c9a19fd4557e514d9dfa413dca064239e528 /bfd | |
parent | c9dc8fbd9bd8b3526213c6aa0f1fcbe38dfba611 (diff) | |
download | gdb-866318daa306987c1d57f0b79241e7f38fb9dd4d.zip gdb-866318daa306987c1d57f0b79241e7f38fb9dd4d.tar.gz gdb-866318daa306987c1d57f0b79241e7f38fb9dd4d.tar.bz2 |
loongarch64_pei_vec garbage in objcopy'd relocs
Like commit a9c09a3667cc, but for loongarch64.
* coff-loongarch64.c (SWAP_IN_RELOC_OFFSET): Define.
(SWAP_OUT_RELOC_OFFSET): Define.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/coff-loongarch64.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/coff-loongarch64.c b/bfd/coff-loongarch64.c index 8013737..f752efb 100644 --- a/bfd/coff-loongarch64.c +++ b/bfd/coff-loongarch64.c @@ -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. */ |