From patchwork Mon Sep 2 13:01:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Karpov X-Patchwork-Id: 1979648 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=microsoft.com header.i=@microsoft.com header.a=rsa-sha256 header.s=selector2 header.b=c7DLhmuH; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wy86B2qPbz1ygC for ; Mon, 2 Sep 2024 23:01:54 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9B6F83858C78 for ; Mon, 2 Sep 2024 13:01:52 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20720.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::720]) by sourceware.org (Postfix) with ESMTPS id 092773858D26 for ; Mon, 2 Sep 2024 13:01:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 092773858D26 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=microsoft.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=microsoft.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 092773858D26 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::720 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282093; cv=pass; b=t7Rq0gfsmdwoM4ks50DOj9DnMNGCBf5yxqjXYXbuMGL0w8Uq8Db6EWkvwWpuUmCHelqpeZVk4wd0gU3TNklrIxb4Duvwx/2AtcxGb4NeDQX/3BhZ6hppm5DqUXJlrJ8iVPLw4zKImL8WTxaIybWyRp9Ink4q3gmokQmosBk3JJY= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725282093; c=relaxed/simple; bh=RBCyK4tDjECYGKgN1b3bB7rwLnmEGob3kQ0uOwj+M8c=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vISzMlCM9QNu2z+K8VdbkSXOk6TcpQ5NBLsNGyCQzAqgkntqQNhpaAhHBvGDSOg4WQfxpjkUJpj8uHXqCMuRRjaO1wJ/L/0gr/YzYqi66StjZ8Rjale9BV898ACyVWaiiEd9Z8UtuXyTIr9afhn/BFGnVI5gCJTcBg7Xcu0JdbE= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qWvMfRI3NURmCpHab/o7oqVKvy/JRz6naBLcEwn5kkMGTEcd/RJ87qk89YUjZs0jECzXppKhYDUfmtP86Wz+3A+696Y7Ly7FYECgxth2iLDfkvatEXTuhhQBWnlykojv4m57XX0PlArEAy7Bwz2jf8HGQpTWfaJH3SIk9gSB/mT3ezvEyLlH3YHwPDl8AXpsno5lWSB5VAL+wg4dB2boo8sDRN6U16I4QHLGrmjDKMAngRWqdqUTEIT0uKUFT4ll62pORd9hBEXJp1DLjaNNSEDa9LdEN2iwl/71UJ3Kh4kTnaWd5Baju81RMsiUv+DzAwgBjAlWIE6LoSRoOR5LXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=//swQkKy+HujzYp30GmO19j2FwPVGynfGRAPH+WLomg=; b=JQ2SHYHxo/rCFQoRThS8sTNm8SqffpdJRhzOilRyBGsR3x9y3FfJwcZMEK6wUwANiZcWA/czUjF103HfhK7mEob7VEwXGtQD46VS6qLJTFIpzDxrwCKgf+XC1FM3/9Z8qgS+Bj9mkoYZ6osC3BxXIctqwNY4wdPIg4WfJxwO0VBgo6uhbBmjGZaerJ6QncsobhhtZTquQjPmAsDGFlSDsKvhTPcB6vreUynVN8gHQTquRC/iL8r4GpkGGX8GiebUZGsc2z2O24IUmlE60jSBGIbFKWFnv66QbK7/ra47rYk44VadD3A/1VscC5qgpAvul1m9ROVb0eeDdEtF4fBrZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=//swQkKy+HujzYp30GmO19j2FwPVGynfGRAPH+WLomg=; b=c7DLhmuHhkfft09cBcrw5qnXozHJqUMeEQ0adBY2akP7+IsPQegc16qoB/wHwQ334KucZJrkc375aVeZRYwp7nCUFdyAH2yheyHpjis1EzolkGnTLxnQO+YU7lJ25AfTFnjnKXoEgAZdD7UR60sbmkhOLyGPOqWRpWiNeLBg4e0= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by PA6PR83MB0647.EURPRD83.prod.outlook.com (2603:10a6:102:3d8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.3; Mon, 2 Sep 2024 13:01:24 +0000 Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com ([fe80::399d:9bfc:1209:af10]) by DBBPR83MB0613.EURPRD83.prod.outlook.com ([fe80::399d:9bfc:1209:af10%4]) with mapi id 15.20.7918.000; Mon, 2 Sep 2024 13:01:24 +0000 From: Evgeny Karpov To: "gcc-patches@gcc.gnu.org" CC: "richard.sandiford@arm.com" , "Richard Earnshaw (lists)" , "christophe.lyon@linaro.org" , Maxim Kuvyrkov , Radek Barton Subject: [PATCH v1 2/9] aarch64: Add debugging information Thread-Topic: [PATCH v1 2/9] aarch64: Add debugging information Thread-Index: AQHa/Tg2FRbFIEv720mnvXmlcl58dw== Date: Mon, 2 Sep 2024 13:01:23 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2024-09-02T13:01:24.201Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DBBPR83MB0613:EE_|PA6PR83MB0647:EE_ x-ms-office365-filtering-correlation-id: c7568195-0759-4769-4441-08dccb4f591a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?yN8aKO5d5/FKJ1whuqb5x8f0uc?= =?iso-8859-1?q?oQuO5WfqEj315yMZZ6/RaqgrM3Oso+RUTagXk+hQn5lYJphvWjogAEMAxO/n?= =?iso-8859-1?q?GKC4ttLHjxepcdrXAihH+blVsCqKXvw+IWjV8x2TdOGLfKzAxLsgIKg5ExEQ?= =?iso-8859-1?q?WKRMvjaqICoA2Irqowib0SNJc4gfniMVw/4xBuGsTeqAwB9GOmRa2wW1McAp?= =?iso-8859-1?q?S/NtGEETLl/zKLFu4F0SHCvCZAEvmPb7inVl/9J3IAdyQLQaXDxkLyQ6WP7g?= =?iso-8859-1?q?Ho63e3djDARfxDHnBYqhunLOqhiT+pjEOLAS3CkRFkMCdRACLZoDBeumKJRg?= =?iso-8859-1?q?GStv45neHdcauJPDWy8sRVUb1K//+yNL6qObD5l5llSv7xr0Iijs39FieV4b?= =?iso-8859-1?q?eO7JYtGAKd20tkawx0/MigH02Q6tQyUHBZilwYXPwFwNvDOxfWY3GyVbAKsv?= =?iso-8859-1?q?SO1oOy4r6BSU38SylIopW0NWxv3D1oeNsENLaJjWtPC8ahIijnh77xXSjC09?= =?iso-8859-1?q?W4t8643HLIvsEtfQVsQ/hRYdV42hevQjsVLJSniW0bBlfgK6oBf0ubPmqMQy?= =?iso-8859-1?q?1PTDiyE9iCsu6QI+Gcejy3PjYgM+lVleZ+Kl19zI+FBGys3iuaxByru5aKUW?= =?iso-8859-1?q?448jUiob1VqpHNnVU54fJ04EnNqFTn9gWsdINwUxnKA3GVdT2rZPa4LojxoW?= =?iso-8859-1?q?782rdn8fUYgb9jMjwl3uG3wA7i/I7qg99+SJ1RlzH6j10kKOmwXd1qIdMqTl?= =?iso-8859-1?q?cLYEQVzdvDvE2OfqpZBRL1vZww91sp9d5sHx3GqMcs/AEn4jG0uBUkyl0gaN?= =?iso-8859-1?q?MJFqG8A0sVMyeM7a72ELr4ug3NwgKgSt66OpJrNc1Voyzf0yS5T3ajMfjnRE?= =?iso-8859-1?q?aQ7YPQY8HSvSRzfPN9WLrO7+XztYfnEfZMphWSToM1SDwJ8fTC0I+I09eXkC?= =?iso-8859-1?q?Qb7EIGSKstRO0urTJRo/Fvoc+wwIANu4SXxqrJUSUp1UOqbcVO6uGVjo/eTG?= =?iso-8859-1?q?orf6vQ5Itvsx+AfukBO8Iw+kViVnSYEpyCcV9lDGfIi4hQJoTzvTRtUaCL8/?= =?iso-8859-1?q?/oqr6Xs0RLrV5t5wCXrDPy1kgDx4tUymAlgz4tRYcfYNlsL3M90CmFiZjUvj?= =?iso-8859-1?q?zNoYu0fy5foDLQdSJ9bVJtIu+bU0tVtT/wyExtSJ48rv2rWSbjlqHFsIRXq1?= =?iso-8859-1?q?Ap5DR+RZW2WQ3RaVjtDE+kY7SkqcnnkF+5MPoyA5lEBA5durP9Kgb6rQU63g?= =?iso-8859-1?q?yFg4Sgqf6F6CEWJqheaaUGa/HTo28tbuDYMHPy30iv++gEhmtdZAauG8rnOS?= =?iso-8859-1?q?BpijzI+5HetpNNufYXXp7N3aLpFTxJqskNSoEQD9uBkFlCDoKmHF3spCPT8t?= =?iso-8859-1?q?6ps95CfiHZ9FeNeDPvGX7eRp8uTSKxQ/duWIcw8KkMmrIb4McIiL7bzRVH3u?= =?iso-8859-1?q?BRxrHH28esf1mBFp496I+CxA=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR83MB0613.EURPRD83.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?cDtUVXd0RXVZxzzNaK6vtt2?= =?iso-8859-1?q?lJ1FJOgIOFIrHETG4bYB3tnxSJtum2e0t9B48HPMCOXIxwLnekaWqmn0vO2a?= =?iso-8859-1?q?4oQGgZC8VLA0OYLRdwOSc6DhRFVvNuQ1yprRUKRhCX9o7sktRpNgbKtfXlOs?= =?iso-8859-1?q?6swFGMIa5jODxSucbrsZ18+SwIrt+2e4Y3drVe0RMXCTKeFKoyGe+wWhLGBF?= =?iso-8859-1?q?FUA2DaV1W7YtSJZmRYbmusFJr43a61/oxHTS12BXoDamtw6se7dtjEHZH+rg?= =?iso-8859-1?q?PhxySdVHlbRFWNHcmC4eu9NdQC2TvyYy7u3OvmOApJw9Xc8KtOsEbgutdZNi?= =?iso-8859-1?q?7R1CC9b9JQpp/4ULpPHP29pRXtK6CiRvHfrubIhOR9D8ONRXrvDiRoC7aqhb?= =?iso-8859-1?q?1vm+ScAJb4KoagljtPYUKxK+gjHN6dtTPUqFQ19zsUxyRttsBV6YkVf1l3fN?= =?iso-8859-1?q?r1xvT5jdBiU13U42HByIvkqJmOt0yrKgaCteVwK5MyvaZ+p+L/21f74LlaVW?= =?iso-8859-1?q?ilg9R7oodm5BWVa4lF65xDz2nO6hw0L2OhCaCKeX7Uun2a6VYHNGUtE+LqMt?= =?iso-8859-1?q?3dYn8XvTShXKXo7DVyFDSXKDl1e91C16dCGKjPXf3Vyap6z/+VM70PgIekh8?= =?iso-8859-1?q?rQdNdKhBJ+0MHW4qPbndzOGsZgFJFFp45M0GLhdLDjy1dZsTYz0m9Y6XIQ2+?= =?iso-8859-1?q?Oiv/NL32G3A0abJpZDKxwhw/Ta8jytjizMSbwQlO1SOf9/rI5twoA+pnSVsW?= =?iso-8859-1?q?FOV+8t1IiVldzIxmvumpezNQVLt76z5vsAHlggnUmeqmR5kkNGlSxJivp3Am?= =?iso-8859-1?q?ztAQLOEYmvQf6QYE1umSuDaVcHjGZRDqREklHlG00Uuvy7XtYAZVX6nffM2I?= =?iso-8859-1?q?iDwLuckse1bV6OqRM4IHR8+zMglaDFthgYwUrCLHBkKU6MBhwByYtzuwPoma?= =?iso-8859-1?q?SuVAmJps1tGuwe3XHLnaozSzsp0okYN483SRq35fhlBB8tl1gl257QSJs2mV?= =?iso-8859-1?q?ie/6GldpAd6J9cLA1hzNw7h7qxLZKCKi2FNvqtvvQr+HpvmfdXnkIdMDr+Xj?= =?iso-8859-1?q?9DA87giFZTJnGIpHPza8H8yWmfNS2fwKAjHwM8H1RQTu9ugX0G1w3sRgbnBM?= =?iso-8859-1?q?1av3GFirHR5Yj14+T+Ra/SogQiOzD8Ffy5LsX99PbdnYv3+NqY/jK/Tdv06i?= =?iso-8859-1?q?Lf8Q220gbkRqqCy7sVxv608Uz2rwLufcBG/Dl3emSzG5cH1NEX4nJU0Gzl8Z?= =?iso-8859-1?q?005CfLJDagWb4ZBz7gxuWqF8zbIDmcVmxyu8UniLN1U87F7U4gvAqwzOqEUn?= =?iso-8859-1?q?6KJWTgdjOQqNJepIYkY/nfrzYgDKpfijZ+saXTe+TzgSTKFOlfhMgBtjJawo?= =?iso-8859-1?q?Wb6msj4Qmu4F/GRIB8rBzByXFBp5kVX+uIvVQvGa3HSw3Tcz8x4Q3u/utbiX?= =?iso-8859-1?q?PWcIgV57F/RR0p6TFBe0dfUiNDWdLswN2VRmJaHZ67u5sSr+P5VcoMjAjtvj?= =?iso-8859-1?q?YjRnVbJIqYgXRUdJXxgZnz7oqTwUaKAwDtqXGn3t6DC/j9QVvf6QgxKbu+FC?= =?iso-8859-1?q?gp1nwsRPhMdZQf86p3poTdQjufMfgTuQHHOJyWX580GYILstmXioclRHPlaz?= =?iso-8859-1?q?3WoS3P5/VEdQWYWQc7T5SrVF9IN+MDV8FZgVZ9N77vTf7EEfZb6Z6+bsaVDO?= =?iso-8859-1?q?SlDG9gbh+2EOr1ISoMke8?= MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DBBPR83MB0613.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c7568195-0759-4769-4441-08dccb4f591a X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2024 13:01:23.7180 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6U/5HnfD5FKia6gscHW4kTgZylLiUPUX1cpUigjioVx2+rMK7WbJJKYjRG/25XetLL+3zI93PJKiiyNfzrl9uw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA6PR83MB0647 X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org This patch enables DWARF and allows compilation with debugging information by using "gcc -g". The unwind info is disabled for the moment and will be revisited after SEH implementation for the target. gcc/ChangeLog: * config/aarch64/aarch64.cc (TARGET_ASM_UNALIGNED_HI_OP): Enable DWARF. (TARGET_ASM_UNALIGNED_SI_OP): Likewise. (TARGET_ASM_UNALIGNED_DI_OP): Likewise. * config/aarch64/cygming.h (DWARF2_DEBUGGING_INFO): Likewise. (PREFERRED_DEBUGGING_TYPE): Likewise. (DWARF2_UNWIND_INFO): Likewise. (ASM_OUTPUT_DWARF_OFFSET): Likewise. --- gcc/config/aarch64/aarch64.cc | 9 ++++++++ gcc/config/aarch64/cygming.h | 39 ++++++++++++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index bfd7bcdef7c..e4df70ddedc 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -30588,6 +30588,15 @@ aarch64_run_selftests (void) #undef TARGET_ASM_ALIGNED_SI_OP #define TARGET_ASM_ALIGNED_SI_OP "\t.word\t" +#if TARGET_PECOFF +#undef TARGET_ASM_UNALIGNED_HI_OP +#define TARGET_ASM_UNALIGNED_HI_OP TARGET_ASM_ALIGNED_HI_OP +#undef TARGET_ASM_UNALIGNED_SI_OP +#define TARGET_ASM_UNALIGNED_SI_OP TARGET_ASM_ALIGNED_SI_OP +#undef TARGET_ASM_UNALIGNED_DI_OP +#define TARGET_ASM_UNALIGNED_DI_OP TARGET_ASM_ALIGNED_DI_OP +#endif + #undef TARGET_ASM_CAN_OUTPUT_MI_THUNK #define TARGET_ASM_CAN_OUTPUT_MI_THUNK \ hook_bool_const_tree_hwi_hwi_const_tree_true diff --git a/gcc/config/aarch64/cygming.h b/gcc/config/aarch64/cygming.h index bd6078023e3..e4ceab82b9e 100644 --- a/gcc/config/aarch64/cygming.h +++ b/gcc/config/aarch64/cygming.h @@ -21,8 +21,13 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_AARCH64_CYGMING_H #define GCC_AARCH64_CYGMING_H +#define DWARF2_DEBUGGING_INFO 1 + #undef PREFERRED_DEBUGGING_TYPE -#define PREFERRED_DEBUGGING_TYPE DINFO_TYPE_NONE +#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG + +#undef DWARF2_UNWIND_INFO +#define DWARF2_UNWIND_INFO 0 #define FASTCALL_PREFIX '@' @@ -75,6 +80,38 @@ still needed for compilation. */ #define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \ mingw_pe_declare_function_type (FILE, XSTR (FUN, 0), 1) +/* Use section relative relocations for debugging offsets. Unlike + other targets that fake this by putting the section VMA at 0, PE + won't allow it. */ +#define ASM_OUTPUT_DWARF_OFFSET(FILE, SIZE, LABEL, OFFSET, SECTION) \ + do { \ + switch (SIZE) \ + { \ + case 4: \ + fputs ("\t.secrel32\t", FILE); \ + assemble_name (FILE, LABEL); \ + if ((OFFSET) != 0) \ + fprintf (FILE, "+" HOST_WIDE_INT_PRINT_DEC, \ + (HOST_WIDE_INT) (OFFSET)); \ + break; \ + case 8: \ + /* This is a hack. There is no 64-bit section relative \ + relocation. However, the COFF format also does not \ + support 64-bit file offsets; 64-bit applications are \ + limited to 32-bits of code+data in any one module. \ + Fake the 64-bit offset by zero-extending it. */ \ + fputs ("\t.secrel32\t", FILE); \ + assemble_name (FILE, LABEL); \ + if ((OFFSET) != 0) \ + fprintf (FILE, "+" HOST_WIDE_INT_PRINT_DEC, \ + (HOST_WIDE_INT) (OFFSET)); \ + fputs ("\n\t.long\t0", FILE); \ + break; \ + default: \ + gcc_unreachable (); \ + } \ + } while (0) + #define TARGET_OS_CPP_BUILTINS() \ do \ { \