From patchwork Fri Jan 6 01:25:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Harmstone X-Patchwork-Id: 39895 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp581006wrt; Thu, 5 Jan 2023 17:28:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXtSaLGdDnQdnp5tm2ov4MGDh91gIMwvMehV9vfF49U17nUd7enVaESv0IUy3RPwrBTO/bMt X-Received: by 2002:a05:6402:25c6:b0:478:5688:7c9f with SMTP id x6-20020a05640225c600b0047856887c9fmr55884202edb.29.1672968534060; Thu, 05 Jan 2023 17:28:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672968534; cv=none; d=google.com; s=arc-20160816; b=RcS/VfvpRNwdsNF0TdelPgQIzIvuqeOBMk7lc6iEZcAKqImJdS26pYiQRI+sVNkXd+ t6O46w7vM+Wb3PVkOKGR/pajZ4XgdyzgmtQ27sGl5lnn9E6BjxTjyqLzMUnQwJRdvlD8 RX0vd/+c1cSvvVIHV/WGLe6Sn2qvD7Xm0T+vxai9vjUyZFDe94N0hiW0ZhDmieDN+ho6 4vIsrdZU4iDd19AuN7gKmhwHSP3DGtzm95K45a0oMqr7M3ZtX2SN0cpz74nSq00u5Zv3 CgpAfKksSH5iuCwR6qFeWhhIvz0+Mtq1TtT6QMDf06pq6HmBIdPeZLgIklhuTEFkEPDG lJMA== 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=kLw5umgyyIk70ZgUqU2d+xkyY0Yt9uBL97dYoy+xRks=; b=RP2/9x9yzg33QzCjBM3KxEVhCr2U/5QlPEBL4LPHNyneWoH8YZT6rHuoFuXkdNY/n/ as0WjLHXiiuhDFmW7BKmu6Qd0rxxEOQvLhlB+AZKb9hvODq06oMgIkJwuF6864DSobDp GIHThbYu3AazE7qeKdIIJmw+XEE0GYGDEa6JSxFnowOdJno3qgvIZWG8ZfVyowM65stc XzBMMoUZPAFb/yN/HVmynkclNfBb/OYFZxOTJLmoysA6nyIH8YnsyAfO3lkdgd93DzOI XG7WHxBdtekXW0mKbg0PnxFKKdDMI0X1KSHbxYdCQJpdNACozdwwrqKCeXfVQ2n4SdKk EmEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b="NIuha/LU"; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d26-20020aa7ce1a000000b00457f31c1a10si31028850edv.584.2023.01.05.17.28.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 17:28:54 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b="NIuha/LU"; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 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 66BA43881D0D for ; Fri, 6 Jan 2023 01:27:23 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 1531A3858C2C for ; Fri, 6 Jan 2023 01:25:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1531A3858C2C 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-x330.google.com with SMTP id z8-20020a05600c220800b003d33b0bda11so3208733wml.0 for ; Thu, 05 Jan 2023 17:25:24 -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=kLw5umgyyIk70ZgUqU2d+xkyY0Yt9uBL97dYoy+xRks=; b=NIuha/LUuafUjks5OMjzuDfegIB7PyVVJKx5YW4PYBTKkDY91IxzcoJ2tKXekhPWlC vfcRdMGR8u+R0PaMp+eeQoEnprgfEqMNtgMWy/sa8QkxG3GV/8z9G0/zfAJr7KekuV9r ISPYbvukwfogg3tqesQ0ZCPIeTFUXp62N6jxgZCQBcGSDUveTPLhF+nvIpVYbfl0+J/v 4L6DatPXGu/0DzMqBGZeFQfuc9mv/tCQy5CiPo/Dd7JXK6wT+DO4+xO8k8ZxCf41GQMY O6pl2SuoHQ/N8tj1HbYw53Sr8xDfWh8p2xbvOb2vcgDJUcHLvjWQQK7A9GmaG+sicuOb 0Bxw== 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=kLw5umgyyIk70ZgUqU2d+xkyY0Yt9uBL97dYoy+xRks=; b=7ZC8F51MATOrhANYGPyIkYOhBn2m7GXNG6jFxS2BvAGuF1zLwIowJ5cDH1pwb/5bJf Fg8TUZlQQG1xbk2Beg8rooTBCVfyAnv6YJINYd0V76puYlC1SQYLF5c3lVfqrjUmvHsj NQLk3mR3s8l+siYXxuKty6uYV+Azqy4Hfo3k03NsWaBm6eZMAs2GyqmvYBWD0YBTmH3W B39XfnAOfzwe2r6Vd+WWpWRxSstDYqKt286BUd51GMLZPAl4WFshntlqT+UjVGTacHZR F7zkPX+g4qWtwtIxu5XeqZpuhSQRjKNeFXqI8aIa3OblMVt/CXvbZG+zdl+FRvQu+diH oKWQ== X-Gm-Message-State: AFqh2krLnUUulT5yF6SnmSHsGZxOqyQgKO6t9vPDK6HuqSHULQiWEuQv qaUdMe9E34sMx+2SxU8Jcp5yavAjO2NLAQ== X-Received: by 2002:a05:600c:600a:b0:3d1:ed41:57c0 with SMTP id az10-20020a05600c600a00b003d1ed4157c0mr41233108wmb.30.1672968322739; Thu, 05 Jan 2023 17:25:22 -0800 (PST) Received: from beren.harmstone.com ([2a02:8010:64ea:0:8eb8:7eff:fe53:9d5f]) by smtp.gmail.com with ESMTPSA id l17-20020a056000023100b00241fab5a296sm37531644wrz.40.2023.01.05.17.25.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 17:25:22 -0800 (PST) From: Mark Harmstone To: binutils@sourceware.org, Tamar.Christina@arm.com, nickc@redhat.com, pinskia@gmail.com, Richard.Earnshaw@foss.arm.com, nightstrike@gmail.com, wej22007@outlook.com, zac.walker@linaro.org Cc: Mark Harmstone Subject: [PATCH 7/7] gas: Restore tc_pe_dwarf2_emit_offset for pe-aarch64 Date: Fri, 6 Jan 2023 01:25:09 +0000 Message-Id: <20230106012509.7918-7-mark@harmstone.com> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230106012509.7918-1-mark@harmstone.com> References: <20230106012509.7918-1-mark@harmstone.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.0 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?1754234653718759664?= X-GMAIL-MSGID: =?utf-8?q?1754234653718759664?= --- gas/config/tc-aarch64.c | 11 +++++++++++ gas/config/tc-aarch64.h | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index ad070cd0618..2b74db256a2 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -2116,6 +2116,17 @@ s_secrel (int dummy ATTRIBUTE_UNUSED) input_line_pointer--; demand_empty_rest_of_line (); } + +void +tc_pe_dwarf2_emit_offset (symbolS *symbol, unsigned int size) +{ + expressionS exp; + + exp.X_op = O_secrel; + exp.X_add_symbol = symbol; + exp.X_add_number = 0; + emit_expr (&exp, size); +} #endif /* TE_PE */ static void s_aarch64_arch (int); diff --git a/gas/config/tc-aarch64.h b/gas/config/tc-aarch64.h index fa4b3ac577e..134c1f87b4f 100644 --- a/gas/config/tc-aarch64.h +++ b/gas/config/tc-aarch64.h @@ -315,7 +315,12 @@ extern int tc_aarch64_regname_to_dw2regnum (char *regname); extern void tc_aarch64_frame_initial_instructions (void); #ifdef TE_PE + #define O_secrel O_md1 + +#define TC_DWARF2_EMIT_OFFSET tc_pe_dwarf2_emit_offset +void tc_pe_dwarf2_emit_offset (symbolS *, unsigned int); + #endif /* TE_PE */ #endif /* TC_AARCH64 */