* [binutils-gdb] loongarch64_pei_vec garbage in objcopy'd relocs
@ 2022-08-19 1:11 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-08-19 1:11 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=866318daa306987c1d57f0b79241e7f38fb9dd4d
commit 866318daa306987c1d57f0b79241e7f38fb9dd4d
Author: Alan Modra <amodra@gmail.com>
Date: Fri Aug 19 10:23:11 2022 +0930
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.
Diff:
---
bfd/coff-loongarch64.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/bfd/coff-loongarch64.c b/bfd/coff-loongarch64.c
index 8013737a08a..f752efbb51d 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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-19 1:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-19 1:11 [binutils-gdb] loongarch64_pei_vec garbage in objcopy'd relocs Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).