Message ID | DBBPR83MB0613BD5C1327062C9D71181DF8C42@DBBPR83MB0613.EURPRD83.prod.outlook.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> 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=jvmPdgoi; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4VxKD837dkz20Py for <incoming@patchwork.ozlabs.org>; Sat, 8 Jun 2024 23:48:56 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B00B8385DDE0 for <incoming@patchwork.ozlabs.org>; Sat, 8 Jun 2024 13:48:54 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on20720.outbound.protection.outlook.com [IPv6:2a01:111:f403:2606::720]) by sourceware.org (Postfix) with ESMTPS id 29BB33858D28 for <gcc-patches@gcc.gnu.org>; Sat, 8 Jun 2024 13:48:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 29BB33858D28 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 29BB33858D28 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2606::720 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1717854516; cv=pass; b=lwzzXtIkRl5DGGFEaBS/d9u9BuL3uda876LNcBpb9tLbL23JdZhg9KZK77t22pUMQOPdyiE6k5Xj2/IzpuABtPtWZtbzfdRu85gNTd3OtfjDEPN4voZ2PXNtvynkulwaFdvuMsSHIf2y8/RX83LZODpaRWZMdaVhE2B5cjX7Gb8= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1717854516; c=relaxed/simple; bh=B6SZcAONdVfO289Y1GFCpTm7823RaN6DBV/MFA2gZhs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=tsOGncf0DDgFXMXORea5yIpjN+gvWpmv7G7E65Kz2tcngsqduSIECcsgc9zMkqMKt+uZfNBC12oADzMUzOx5T2hMWo5jrmHUp0ogLzR689W1Ip5Xeo7DebZOiLI6XEBiZWNe7q3gEK6/hoi7wE9s8YS62eGk4twHl7lyU+z31SE= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D51VqAiqX9wG2IwNb/Zx9ymImisqteonXPlg5dKQsbD5nxQ2Pp+goww2rLcTuV/BKi914kUfcNWgzTIxA4lGfh1tiH/wBDwVlWzdhmUO93BWzWzcQBEjMABYhoU64jXPVLW19dyFQzX1ufpErZ5iSXS/T6YUfmY3C3xIU0yBcorNAmL9Qb0S48ciLD/x3f3ZYFN8lHVkr4kkThatgsu+yJKs/xAf4+3mZR2zE1RKZHy3sQ5KbEAPFGnCLadU9PEJbfJmdfYs6JplCygxQZXGZdBy6vStOOf6V5i1nIoJnE0oay8oVMnDZ0LWMOv/p5Ox/CK2sMuOf1cW7xOYztrq/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=ImOi2F7s/1NUHMO2BoRkrcA2mUXmQVDiYQ1ccCfvPCg=; b=iAd+U3PoSMx9/yojF36uLMhHvoYWRbP3nX5a2x/enHYed8N9oMtcrTppBu5z130UEfXjQYroCsqtquy4i02jsYX8HWYsRn5lZ+HLq2vOj2+xWwiwLb5n9Q7NITGd5/Hih3WVdwEGgD+awY0uz05TXYnfd1/azVEjdjKw/QBGyzurX0bj92VyLApCkVzKw56zRInl/cR+NtqYo/MWbINDRIs7jh6dtCS5fxyGMxeebCPtGiOfKAsrQX8bz9Ezo7iIF0TD40vWz3uekJCNkNs5SGiYWJ1JdIipmTG6y4fL9dPtY3gph2exlk1BgXoyoQa+Gzl1ojaI44JiVIXgk3Bksw== 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=ImOi2F7s/1NUHMO2BoRkrcA2mUXmQVDiYQ1ccCfvPCg=; b=jvmPdgoi4BCw6CCOQurzWIPWxE9dvN39/n37h/UkhQXKULvH+vGRCTmt0RMSQJP4B+4xjUhCN5qhf+Ip68HxHormdh0QscQwGGE0Sq2nKqvFYj4Un5MLzMcUI7HfEaxVJfje9aFWKhj473Z7kcMOQ7fE7WN3cyHs/Glkd1+9hFk= Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com (2603:10a6:10:533::21) by GV1PR83MB0651.EURPRD83.prod.outlook.com (2603:10a6:150:162::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.13; Sat, 8 Jun 2024 13:48:31 +0000 Received: from DBBPR83MB0613.EURPRD83.prod.outlook.com ([fe80::399d:9bfc:1209:af10]) by DBBPR83MB0613.EURPRD83.prod.outlook.com ([fe80::399d:9bfc:1209:af10%7]) with mapi id 15.20.7677.009; Sat, 8 Jun 2024 13:48:31 +0000 From: Evgeny Karpov <Evgeny.Karpov@microsoft.com> To: Evgeny Karpov <Evgeny.Karpov@microsoft.com>, "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> Subject: [PATCH v3 5/6] Adjust DLL import/export implementation for AArch64 Thread-Topic: [PATCH v3 5/6] Adjust DLL import/export implementation for AArch64 Thread-Index: AQHauaqMbJxic61Tk0qoFGVmJkPMFA== Date: Sat, 8 Jun 2024 13:48:31 +0000 Message-ID: <DBBPR83MB0613BD5C1327062C9D71181DF8C42@DBBPR83MB0613.EURPRD83.prod.outlook.com> References: <DBBPR83MB0613BEC9F720A5C58E7ED14CF8C42@DBBPR83MB0613.EURPRD83.prod.outlook.com> In-Reply-To: <DBBPR83MB0613BEC9F720A5C58E7ED14CF8C42@DBBPR83MB0613.EURPRD83.prod.outlook.com> 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_ActionId=4cf5d1f9-3011-4a77-8066-ab2b27e02d44; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2024-06-08T13:11:52Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; 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_|GV1PR83MB0651:EE_ x-ms-office365-filtering-correlation-id: 8d242700-6e2a-4e16-e2eb-08dc87c1af12 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|376005|366007|1800799015|38070700009; x-microsoft-antispam-message-info: ahaRYAo4qs0AdA6LrRn8I8x2HHM4Lmf3HYqjVhaNlhAEErhKvEe3RfoVjr2wKrheNN+c3bwGvkke79VO7FZRbA42vdVBdM9yXV1zYAQO8prGMUMMiSzU+yQGO9SRZJC65bgaIDr4qFEAahkJkgKgR+Xb3GpfFsWqbHce3KIJaVYDqSIyfvVRAy2JU5EbK6CxcGpLL0pwNJumMpdytjF8C7V0bhYPLB4az4IhwejN2ac3bKYpp7lT9j9wxjNRa5FxHLR6UvYE0sy9Mi2DcXcGGnLUYS+niHdM4vvV5BoVl47L2CM5gO9ISIKdsVc/4TtVAc1FASOl5hnIoQXbQW2MUDb69VOmLJDEdOl6tWuZnHjsztXymzjcpI7uI9aqzsBlcE7H7sVISYEiaS//pAn/QR7V0G3V19QmU9cuk5pbNYb8sz9YSsetnrhXQdpn8SOlWHa2luYp7lr9Fuy4Fi6P00XGPSSpOcXdl5XJAd3xORsyOAgziz4hjLVgqIz1gezYVCYNVF3cMzU6jF7jq9ptkxwhqAePg8zxtkT+dNLyilZZMMHsxb9Sru2wg3tRlFEePKvIoILrUkBzR8WdZU010ISzq0toZmR87b7Pbmm1dS3+QS+gnEqKS7i++PfdNz4k/Zm8O4/r6R0LRYr80OJaIEyZZdEMsvy4LSLijqljSAOJkgXVQwsieVkO9CzvDfpv0UEdU6oDuSfvMoXS+I64tJ88pmU5Ly4vmMkMF0XhydfUELJQd2h7DzuxnqS+iZCVNyz7Sew6zQRb9oi7R8aoN3AkYdHrqJ+T4964KNJnf0E57Bqqixz3Gf1e08+e0r3pl4zsM12jIH9QuO+Z+Mt6Rd7L61fhxZqndXxRr+HevxdMEneE66iSzmY43nyA0BejfJR6anyqJTzZx1+psoHLXdpKSnHQ879i4EQ1dRHNJLfuxm1a/3pXOi5TckWXH/sD7IkEmpjtMQoaKHxk5kW0YwRAckFAnSdGmOI2Fx8FuqYB38CSjr0CCrff6/S2JpTCkYKZhVkhWlU0sl1BkkkiBo/P3khFQeMEsegezylhv4NX1Cv6fbIf+CtmCXfI5VoibJExRRJq1VX/Yo26RcEHSSKs4uImeeiOuj+IgT69gHFyyh/ML/ae0BWlVTUAeA2A3nm6Nk3pw6usznzy8OsLSoTtMk1nbCyBoRgFCaH6BMf0dnzrlZ9UyT4xW0DiXDeDJEetweKdHA9/EQyA6FUkFPafLoQjlwXOb8V9cZBdILzjZG8SqANkwPReHxP3XLcn/rlxGEw3yOO0HS2BDN+RcEcNvvRmzqdNuJfCTXTUgxKqajGfwaj9FbxpbG4twz1TZ8s4oNSKFbhH6T9HjSFvLWh50wuncU53jlAVh94Bqr0= 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:(13230031)(376005)(366007)(1800799015)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: /tQkeeuuo8vZ+cIWpsk1bX73gTBL01VJwrAl8Eyde1rfxh1hZsL1PVFxc/xt7iaW2temnmLWgdeOVPILBA6rsMK/ut+p6g3RzQ8KFPm+yCqrjc7LnjieEhTu8vWwbaiUutC2V+sChBXYhCX6s2R5CNDomp+Iuk7944PiKMpUJH9g757Z399PZKgrtktFwr/P53JFQZeL/MbCS6rGpjLZwVpI3sYgtvSIb3u+3FNiorZQx6EVwQEElPTqeHE2TZvndg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RZuIU1+Y9r1ThLq9EcVHTNfwPmPd8SH94vWv+ztF8CIKM7VQCS2lYOgaKGeQB5+ROvVu2k4sEjDSHG3o775U21hhs4Wz11pCMl0Q61CMLP23m9Y+ofE5kVll+3QcKOht2DJOTcvxXyHc/W0Ue8Zf7ow0uAgmK1WYwJYFt6qpf7wjgMEOA2/qjC+OG7UGd2GCQuhdPbFkaax/fRfqfEv++UsSCOiZfkQeuRXQT9clcvkCdVvEk64LClo9BHmrx//UCmDhaNwV+c35u4rlPnePhEKUQ68isFy7EbqjsI8XWnMh7WZnYS9p3macwj0Y8uwbhejq0ax04RVnXCz1/it Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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: 8d242700-6e2a-4e16-e2eb-08dc87c1af12 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jun 2024 13:48:31.5246 (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: XvB3K5myF7a9L9/XQiEYWJT5WGPMhtx7d82EIcFAwCT2k71mxqWAMVtLCNPQU0NTNFJXHHkdPFRVD65UaOB6qQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR83MB0651 X-Spam-Status: No, score=-10.2 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, KAM_NUMSUBJECT, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
Add DLL import/export implementation to AArch64
|
expand
|
diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index 4bb8d7f920c..0493b3be875 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -472,3 +472,8 @@ do { \ #undef GOT_ALIAS_SET #define GOT_ALIAS_SET mingw_GOT_alias_set () + +#define PE_COFF_EXTERN_DECL_SHOULD_BE_LEGITIMIZED \ + ix86_cmodel == CM_LARGE_PIC || ix86_cmodel == CM_MEDIUM_PIC + +#define HAVE_64BIT_POINTERS TARGET_64BIT_DEFAULT diff --git a/gcc/config/mingw/mingw32.h b/gcc/config/mingw/mingw32.h index fa6e307476c..0c9d5424942 100644 --- a/gcc/config/mingw/mingw32.h +++ b/gcc/config/mingw/mingw32.h @@ -82,7 +82,7 @@ along with GCC; see the file COPYING3. If not see #endif #undef SUB_LINK_ENTRY -#if TARGET_64BIT_DEFAULT +#if HAVE_64BIT_POINTERS #define SUB_LINK_ENTRY SUB_LINK_ENTRY64 #else #define SUB_LINK_ENTRY SUB_LINK_ENTRY32 diff --git a/gcc/config/mingw/winnt-dll.cc b/gcc/config/mingw/winnt-dll.cc index 1354402a959..66c445cba77 100644 --- a/gcc/config/mingw/winnt-dll.cc +++ b/gcc/config/mingw/winnt-dll.cc @@ -206,7 +206,7 @@ legitimize_pe_coff_symbol (rtx addr, bool inreg) } } - if (ix86_cmodel != CM_LARGE_PIC && ix86_cmodel != CM_MEDIUM_PIC) + if (!PE_COFF_EXTERN_DECL_SHOULD_BE_LEGITIMIZED) return NULL_RTX; if (GET_CODE (addr) == SYMBOL_REF