From: Alan Modra <amodra@sourceware.org>
To: bfd-cvs@sourceware.org
Subject: [binutils-gdb] loongarch64_pei_vec garbage in objcopy'd relocs
Date: Fri, 19 Aug 2022 01:11:23 +0000 (GMT) [thread overview]
Message-ID: <20220819011123.67A8E3858425@sourceware.org> (raw)
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. */
reply other threads:[~2022-08-19 1:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220819011123.67A8E3858425@sourceware.org \
--to=amodra@sourceware.org \
--cc=bfd-cvs@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).