From patchwork Fri Dec 30 02:40:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Harmstone X-Patchwork-Id: 37549 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2692009wrt; Thu, 29 Dec 2022 18:41:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXuhWf0gjRdSDsWJeuyCCBbZEEU5X7OFcpBXjBKr/q8GbHTF/NDyNtupK2GT4T9c/OjNKvSK X-Received: by 2002:a05:6402:1819:b0:45c:835b:ac67 with SMTP id g25-20020a056402181900b0045c835bac67mr25382928edy.34.1672368073897; Thu, 29 Dec 2022 18:41:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672368073; cv=none; d=google.com; s=arc-20160816; b=Sc0hd29+sK9oG6fg3N1v2eK8B9Dyb/nlSjQZnUd6RzNLFqmMS4QJuJOmNx4XegrkFY jTVg06wyhRFANyXVjr7unNEmEqF7vt3ClEI06o3s1wpfd1GUGVJ1C0t60XNKlQYyXAk3 tRtBYVodKzD3gVxmUcVURmxLon8QKBzam0kbqk2hQXRsoeFAEQk7aieTREMmFGyolspS YUJbPzWPTXScIg3leJLR6/Nyu1OlxJmdyQyEfjOmdCrXUvPUcQJsbrenL2tNo9zVZek+ eI2HupjbVhP4djKt1Cn37DLrCocoj0eJ2crR2OfDUypSaXxFEHbDI3zzbBE43sbCLVgg nSJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=XUpVLcJoNN/3/LnqqgLqUDzmPrIMnBsUDw6o/mb8Bn4=; b=SPr4XPEgZ3swmg/ah5IuRMq/BMhnPATLtmxm+7WWvuUgQZY17+xd15c8n7z+mPBOBf O5HGjQM/VYPQiK+E2uTVIubepPRZREezfjI9/0cnNDvSjeY8iukCIklJOMGklGoDEgB/ jWauVH+homzBJ1tT+F5EWl/rIBBpwwh6TleOmHQ2v2lQ2rqapC7wE+gzH8WlX6XKR/Yi Tx8m94tjrIuel45zXnJAu1E8Lc5YgCeKtLokib0e8yfL+0ElseeIZxP7/MzPLOFBwLj0 ukJGqfo5kxhXmjJJcb73oDBHGiV2ZfOzGR/MyofmiheUZimUuWFCSiGdnGBZF4wWAwb2 e2ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=aZsIRCps; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id el15-20020a056402360f00b0048321d887b5si12964170edb.516.2022.12.29.18.41.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 18:41:13 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=aZsIRCps; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 35FD33858289 for ; Fri, 30 Dec 2022 02:41:08 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 5F51A3858C66 for ; Fri, 30 Dec 2022 02:41:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5F51A3858C66 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=harmstone.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-x32a.google.com with SMTP id b24-20020a05600c4a9800b003d21efdd61dso14424663wmp.3 for ; Thu, 29 Dec 2022 18:41:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=XUpVLcJoNN/3/LnqqgLqUDzmPrIMnBsUDw6o/mb8Bn4=; b=aZsIRCpsCioHYfvzWk5mOfn4bu3Mt7pFL4zbl36evDuPkmGwXD9Xq2+JZoTRKRDV4n /ugEGMnE8MjYr6VNUoY3YT5t2RRqqDdl7FIKgjsuYvRoKWsM947fGQiHvG4VQkmy1MRh NKdbg7atCTOpxdxCP0VEWnTd8Rpva+F44V4kgA5Y8GUCb6ad5snxgbistBhq+v9mWJpr vIox4WMHvW8r3m2CACOx+I9ByS4EPVDu3mottSjUp309UBVT0a3Edu21h+KVDin8opZ4 JNcZdla24CgVxBCNA5/VkzD6eaVfdTYncQvPED21A2PwCCiQIhr69warW+GgqNHniGI1 P8fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=XUpVLcJoNN/3/LnqqgLqUDzmPrIMnBsUDw6o/mb8Bn4=; b=jasrrLPQECMDQgO3Y0PFaONDVqz2glfo5X2nZVjZNSofexY5+vFHNMVr8dEZc1u8Gf 4oQe8+Cnjs3nXp/BY8UfH6ipr5eTYlmsANjD5Jg+AWvOlQLlbP/oJIp2KVM6vtFa6Nvm jFl8mCpoj5LUcXE8vO55kksKcVWbhOzHu03HOqItp7zTXLRjAlhimoE8bwhBplxcMfsq d3fA3vYQ4IICPJ6NTEf/b6u8BzBwLlXie8FPQoP74/xoYsPRPHtMG7wuG1chNfo5/fbD u7KoRkLrpj4kwLYauHd1E5g1XdiVWivndcS7HNCqmoF9MxeDgxntCiXHvE98rIRgLUdn oYFQ== X-Gm-Message-State: AFqh2koSTez8DoAzyHJQW9rothFgaL/a0bg3URIc15dpdzCRFEdZSOBv aWpFOpI0Ify3HeOl0Uw3dVUhCIAk1VzLdA== X-Received: by 2002:a7b:cb56:0:b0:3d2:3be4:2d9a with SMTP id v22-20020a7bcb56000000b003d23be42d9amr21591561wmj.20.1672368059073; Thu, 29 Dec 2022 18:40:59 -0800 (PST) Received: from beren.harmstone.com ([2a02:8010:64ea:0:8eb8:7eff:fe53:9d5f]) by smtp.gmail.com with ESMTPSA id t17-20020a05600c199100b003d99da8d30asm3726287wmq.46.2022.12.29.18.40.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 18:40:58 -0800 (PST) From: Mark Harmstone To: wej22007@outlook.com, zac.walker@linaro.org, tamar.christina@arm.com, binutils@sourceware.org Cc: Mark Harmstone Subject: [PATCH 2/8] Fix size of external_reloc for pe-aarch64 Date: Fri, 30 Dec 2022 02:40:49 +0000 Message-Id: <20221230024055.31841-2-mark@harmstone.com> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221230024055.31841-1-mark@harmstone.com> References: <20221230024055.31841-1-mark@harmstone.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753605025559708040?= X-GMAIL-MSGID: =?utf-8?q?1753605025559708040?= --- bfd/coff-aarch64.c | 4 ---- include/coff/aarch64.h | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/bfd/coff-aarch64.c b/bfd/coff-aarch64.c index 2c3e225a222..0faa75c63d2 100644 --- a/bfd/coff-aarch64.c +++ b/bfd/coff-aarch64.c @@ -188,10 +188,6 @@ coff_aarch64_rtype_lookup (unsigned int code) #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. */ diff --git a/include/coff/aarch64.h b/include/coff/aarch64.h index 100e08f18ef..b670f28bd3e 100644 --- a/include/coff/aarch64.h +++ b/include/coff/aarch64.h @@ -54,11 +54,10 @@ struct external_reloc char r_vaddr[4]; char r_symndx[4]; char r_type[2]; - char r_offset[4]; }; #define RELOC struct external_reloc -#define RELSZ 14 +#define RELSZ 10 /* ARM64 relocations types. */