public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* aarch64_pei_vec
@ 2022-08-15  0:51 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-08-15  0:51 UTC (permalink / raw)
  To: binutils

I know this target is just a skeleton, but let's not write out relocs
with uninitialised garbage.

	* coff-aarch64.c (SWAP_IN_RELOC_OFFSET): Define.
	(SWAP_OUT_RELOC_OFFSET): Define.

diff --git a/bfd/coff-aarch64.c b/bfd/coff-aarch64.c
index e22ef3c4795..e6f2fc2a0a0 100644
--- a/bfd/coff-aarch64.c
+++ b/bfd/coff-aarch64.c
@@ -72,6 +72,10 @@ static reloc_howto_type pe_aarch64_std_reloc_howto[] =
 #define bfd_pe_print_pdata      NULL
 #endif
 
+/* Handle include/coff/aarch64.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.  */
 

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-15  0:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-15  0:51 aarch64_pei_vec 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).