From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id 67A8E3858425; Fri, 19 Aug 2022 01:11:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67A8E3858425 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: bfd-cvs@sourceware.org Subject: [binutils-gdb] loongarch64_pei_vec garbage in objcopy'd relocs X-Act-Checkin: binutils-gdb X-Git-Author: Alan Modra X-Git-Refname: refs/heads/master X-Git-Oldrev: c9dc8fbd9bd8b3526213c6aa0f1fcbe38dfba611 X-Git-Newrev: 866318daa306987c1d57f0b79241e7f38fb9dd4d Message-Id: <20220819011123.67A8E3858425@sourceware.org> Date: Fri, 19 Aug 2022 01:11:23 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2022 01:11:23 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D866318daa306= 987c1d57f0b79241e7f38fb9dd4d commit 866318daa306987c1d57f0b79241e7f38fb9dd4d Author: Alan Modra Date: Fri Aug 19 10:23:11 2022 +0930 loongarch64_pei_vec garbage in objcopy'd relocs =20 Like commit a9c09a3667cc, but for loongarch64. =20 * 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[]= =3D #define bfd_pe_print_pdata NULL #endif =20 +/* 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. */