From patchwork Fri Nov 29 01:49:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 13888393 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4B631D70E03 for ; Fri, 29 Nov 2024 01:49:38 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.845650.1261022 (Exim 4.92) (envelope-from ) id 1tGq8L-0004yd-Ld; Fri, 29 Nov 2024 01:49:25 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 845650.1261022; Fri, 29 Nov 2024 01:49:25 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tGq8L-0004wC-G0; Fri, 29 Nov 2024 01:49:25 +0000 Received: by outflank-mailman (input) for mailman id 845650; Fri, 29 Nov 2024 01:49:24 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tGq8K-0004ZN-6B for xen-devel@lists.xenproject.org; Fri, 29 Nov 2024 01:49:24 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20607.outbound.protection.outlook.com [2a01:111:f403:2614::607]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 2717938c-adf4-11ef-99a3-01e77a169b0f; Fri, 29 Nov 2024 02:49:21 +0100 (CET) Received: from GV1PR03MB10456.eurprd03.prod.outlook.com (2603:10a6:150:16a::21) by PAVPR03MB8923.eurprd03.prod.outlook.com (2603:10a6:102:32c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.14; Fri, 29 Nov 2024 01:49:12 +0000 Received: from GV1PR03MB10456.eurprd03.prod.outlook.com ([fe80::a41e:5aa8:e298:757e]) by GV1PR03MB10456.eurprd03.prod.outlook.com ([fe80::a41e:5aa8:e298:757e%7]) with mapi id 15.20.8182.018; Fri, 29 Nov 2024 01:49:12 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 2717938c-adf4-11ef-99a3-01e77a169b0f X-Custom-Connection: eyJyZW1vdGVpcCI6IjJhMDE6MTExOmY0MDM6MjYxNDo6NjA3IiwiaGVsbyI6IkVVUjA1LURCOC1vYmUub3V0Ym91bmQucHJvdGVjdGlvbi5vdXRsb29rLmNvbSJ9 X-Custom-Transaction: eyJpZCI6IjI3MTc5MzhjLWFkZjQtMTFlZi05OWEzLTAxZTc3YTE2OWIwZiIsInRzIjoxNzMyODQ0OTYxLjI0NjI5OCwic2VuZGVyIjoidm9sb2R5bXlyX2JhYmNodWtAZXBhbS5jb20iLCJyZWNpcGllbnQiOiJ4ZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcifQ== ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ElJ3vJBzxP8+LZqZTOlsmpAtXVWtyicatYOS/qL3rQD4vVjkztPTArMJA/C3n/tqkDATZ7UiGjHKg1Dic4cpV3O5DEdFo9D1kWQdKZq6VACWG4Z/jK6A9dEKIDXC+QZAadJUp6oetsgMsZAex98DJC/4zd0taQJna1xez5nWAX3DRukqSoLl25Yiuw2uM2Ut+jL4iSADsW50/aYcmSQpUVwwirL1T2HkVREROr4RT074lrAjtDkvsrrHEGHFAtOxMq+E1VmYRdrtHXSFO7k2rYMrfmuiD3iU87l4KMg1K7qO/pt83TF80IFZie89H29RINkm4I1+hAAcAJD4KcepWQ== 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=91rks3iGHddXWlb9TaITzGl1ioO2H4KAWWNhdEIdpuY=; b=MmJUWDB0b0zyl7Rh0NMO16MbMcx8H4b+Rmy5WY0U6Xm1oSyKeYDDjLdzfS8Fet2YgteWStg371b51ZvQvz8FPgCNcgWlhe/JNvgMEwt4avNagIYVyMYQwFTF4K6Q7R2j9XuqqeTGYbWCZo32fD/yRc2TXIM7IhMBwwKaWGlCUOldFeeHHllQyWq3PJb9hN276VGRE4XsZBvDK7kUjMWX0fplbp4VRC/4fLv3M+9er0pXneSotw0r7LAGbuMHUiT9RSriZ35bwAbq4ijwShPlOPt4jJFgcBK1dMq6Z/QM05xx1Ja9xPL+GS+8v8TnCtL6e0HAY26UgDEW6JOg+uqTiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=91rks3iGHddXWlb9TaITzGl1ioO2H4KAWWNhdEIdpuY=; b=aplOXoCUuVoaYCPHKQGjzcOfFn05iu+9uy+T/XV1kFts4g61PjbGODRyWq75lBeHfY2fM/9/MZ3OyrDemuaUfxgpuiy0ejbckBPzleAc+g/Q4D+hyLatv9TqjkvDDFuQNdNpzEFxIPRIt91J2vZHwMKc57nVMVRyBp247l4x2hH3nL4CHuO+nYcx13Lqzc3rPcjKYBjk5kNsrCz4PfhH808QO2gK7aOwihub6HdKhOvXQ+sOeAzF11qRPjxxAu1nkjtyf5LQ1HQbLNlgX7FnUikP2uCMFAsA+lzN3pnyFgL/2j+HT7ymYTEk4iRRqSrupzlvcnaXvFOQALhJXAMkJA== From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" CC: Volodymyr Babchuk , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk Subject: [PATCH 1/5] arm: bugframe: emit msg offset only if msg is present Thread-Topic: [PATCH 1/5] arm: bugframe: emit msg offset only if msg is present Thread-Index: AQHbQgDhNP952szXN02UUErt4gl8yg== Date: Fri, 29 Nov 2024 01:49:09 +0000 Message-ID: <20241129014850.2852844-2-volodymyr_babchuk@epam.com> References: <20241129014850.2852844-1-volodymyr_babchuk@epam.com> In-Reply-To: <20241129014850.2852844-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.47.0 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: GV1PR03MB10456:EE_|PAVPR03MB8923:EE_ x-ms-office365-filtering-correlation-id: b26fee8c-56da-47d2-e80f-08dd10180611 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?ssDuXYd05OPtTtNdezV30qDr2y?= =?iso-8859-1?q?Kvhq8X4SoRzCrr4r8Qh+bAe4Na2xdvFkMS4ATc5RAzPbmfyiItugjLQfOeXs?= =?iso-8859-1?q?6pJ9oOygoGeo1E7wqGw9Xct7m7r3nvY6YaN4mr+1LILMmSABIp3Xr/Y6ApIt?= =?iso-8859-1?q?zX7D1PgatfRX8Gfmq7OM0WV67Eoe1/9TNWnq/IekyXNSPRg3nlDPGzxTKGCZ?= =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M+HM8HTyX8eBDKsQ5yn7gxk4fEGlXyY46pYxMTrRsIm0?= =?iso-8859-1?q?YUXUBl9F4V0K6W8RpyXLpFQNpY9LLbv9aerO7Yo5ByRRB4YX8VkcBOZIZEf9?= =?iso-8859-1?q?7EM5onyy5e3I4eKBArHYZde/f5tt67E5bK09pzFCTofotcCHPClNdK2z3Br5?= =?iso-8859-1?q?f82qZHJIpCf3USCEVHOR2L78vR4+Emx8jPCPgmEcNe8B42dvbojgQVYAf0o2?= =?iso-8859-1?q?T7D6d7rwZXm4HbGJn5oTE7eS/NsLTOHVkn8Fkka6Y+2DviE39S4ZjOayRl0k?= =?iso-8859-1?q?wz23jxcArFH2ksS+UTb17luZNun7uBJ1BeITuCu6cgI4FyXlKeNjgep9lCWP?= =?iso-8859-1?q?uifAnjSnhySSPAwosq7eiOrg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR03MB10456.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?IXRsHcgt6nSxEdYsI/VuJPM?= =?iso-8859-1?q?EYnRaPF/jvCvYMUYrkRXMwnIxBgzh3ICDcjGUyL9jt8Ah888u87lkPOlIDmu?= =?iso-8859-1?q?FgTU3W+Sa8JkpwT9pNjQpfMLyoh3+yciExZyNWP4Eh5563Ao8rUpYL9p2RWW?= =?iso-8859-1?q?wpJsLqf0Qt8iHTrWrCENSboIy3rD7fgr+cPbkTWGuBWxy3//Lh0aAgW8jihz?= =?iso-8859-1?q?k7qdYclk8Kuy3zBpVNm4o03HPvZVpbCNMFvm01F5O4YVFGNVQ6Fau/DWeBl4?= =?iso-8859-1?q?FyBETb6VxY3yzZ0c1JNX2h5xjb7zy96Dt/qCTdD2Ynm5lo/nyIV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ehssr55Ng12epcElSbMludcT63eO14WLXEINtI4PVaGpdWh0nC71Z?= =?iso-8859-1?q?WT3Cx0OO41vk5jxd3Cn3+GW8xA7bT/uLBG05cDkv4vh1HldOEU3TEy+jMqvq?= =?iso-8859-1?q?ktDmzOB3+952nAfghBctY5ancauEfJZsfZXheZ4gTmZHG6MZyHM9JpRt3DE7?= =?iso-8859-1?q?H4X+OBN6id8flAW+LZosybjLWExR5twgRU0vL4BmtL68XnUG4eIQhq7Vrzca?= =?iso-8859-1?q?n1eI0EC7TcH7gTF0hsSJHFysyRMFK7ksxq4Ou0BGJIG3Cj8vL4TvIyEnk0c3?= =?iso-8859-1?q?Lm8NvnDIfF1AZS1qd1XwZoSv4IqfgmIju6m/DkCbp0/7wp6gzofJ6hqWUcnt?= =?iso-8859-1?q?ih3xC/XCIE/5neDMHK6DsJMdOLd9eYXJz4WW76bS9e42nHijLRyu1hdWj2o2?= =?iso-8859-1?q?Ul8ptS8JIVB6q/Uc6Iccs7h/pkyL2gwS9wlu+ig=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: GV1PR03MB10456.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b26fee8c-56da-47d2-e80f-08dd10180611 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2024 01:49:09.4644 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: oqacB0TLnLGyWCYTGhI0wzC41uR4WQqgaaR3HHeQQn23/hP5yw39N8qRLLtrGOTmQqZc9Fetwxt4C9+tbbU47/JgUw6v1qKXPz+4VzmubQo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR03MB8923 Before this change, compiler would generate symbol that points right past .rodata.str section. While GNU ld handles this just fine, LLVM ld will complain: ld.lld: error: common/device-tree/device-tree.o:(.rodata.str): offset is outside the section Fix this issue by providing literal zero instead of calculated zero if there is no error message in a bugframe. Signed-off-by: Volodymyr Babchuk --- xen/arch/arm/include/asm/bug.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/arm/include/asm/bug.h b/xen/arch/arm/include/asm/bug.h index cacaf014ab..9339e3bbf6 100644 --- a/xen/arch/arm/include/asm/bug.h +++ b/xen/arch/arm/include/asm/bug.h @@ -47,7 +47,11 @@ struct bug_frame { ".p2align 2\n" \ ".long (1b - 4b)\n" \ ".long (2b - 4b)\n" \ + ".if " #has_msg "\n" \ ".long (3b - 4b)\n" \ + ".else\n" \ + ".long 0\n" \ + ".endif\n" \ ".hword " __stringify(line) ", 0\n" \ ".popsection"); \ } while (0) From patchwork Fri Nov 29 01:49:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 13888392 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B5F00D70E06 for ; Fri, 29 Nov 2024 01:49:37 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.845648.1261013 (Exim 4.92) (envelope-from ) id 1tGq8L-0004oF-1E; Fri, 29 Nov 2024 01:49:25 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 845648.1261013; Fri, 29 Nov 2024 01:49:24 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tGq8K-0004o8-St; Fri, 29 Nov 2024 01:49:24 +0000 Received: by outflank-mailman (input) for mailman id 845648; Fri, 29 Nov 2024 01:49:23 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tGq8J-0004ZT-Kr for xen-devel@lists.xenproject.org; Fri, 29 Nov 2024 01:49:23 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061e.outbound.protection.outlook.com [2a01:111:f403:2614::61e]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 2566ee1b-adf4-11ef-a0cf-8be0dac302b0; Fri, 29 Nov 2024 02:49:18 +0100 (CET) Received: from GV1PR03MB10456.eurprd03.prod.outlook.com (2603:10a6:150:16a::21) by PAVPR03MB8923.eurprd03.prod.outlook.com (2603:10a6:102:32c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.14; Fri, 29 Nov 2024 01:49:12 +0000 Received: from GV1PR03MB10456.eurprd03.prod.outlook.com ([fe80::a41e:5aa8:e298:757e]) by GV1PR03MB10456.eurprd03.prod.outlook.com ([fe80::a41e:5aa8:e298:757e%7]) with mapi id 15.20.8182.018; Fri, 29 Nov 2024 01:49:12 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 2566ee1b-adf4-11ef-a0cf-8be0dac302b0 X-Custom-Connection: eyJyZW1vdGVpcCI6IjJhMDE6MTExOmY0MDM6MjYxNDo6NjFlIiwiaGVsbyI6IkVVUjA1LURCOC1vYmUub3V0Ym91bmQucHJvdGVjdGlvbi5vdXRsb29rLmNvbSJ9 X-Custom-Transaction: eyJpZCI6IjI1NjZlZTFiLWFkZjQtMTFlZi1hMGNmLThiZTBkYWMzMDJiMCIsInRzIjoxNzMyODQ0OTU4Ljc0ODQ4MSwic2VuZGVyIjoidm9sb2R5bXlyX2JhYmNodWtAZXBhbS5jb20iLCJyZWNpcGllbnQiOiJ4ZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcifQ== ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F/NYeoodPX6aIEZ1u9xgqbM3jXW3ytc5leLStUgMZGoU8I/cBqvSmPhVLt5OOk8SHeogz3udzN9UP+x8i9/J40JMcqJDHvVyAsfTvm1WWAD1z+KMbKYw5+A/MsnLY20BeWvutVF+Hk30t9DLaCV1IxSHzcDw3mSGYF4i3GCy/hRmlBH/OmWakgEf2FknxgQ/0tZwglWnJeEcF/0Rqto+ZHZ2blmQLwwkPu8XXwlZ13Jw6yPfMlUugNUuTlnH/4VbnRkdVWVv0kG9rHYeKlEFMpb32gVtAZL3GadTTe92Mc/u/mdPbUZK1965UVt1ZO+Rpy4wkiYvKmpdFnkRSPo+LQ== 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=XCMS+YbSfAwyp6W6fe7rYKq/L/tFgk9e9zJ/1i+/t64=; b=vFfGgkDrldWQXo0G91Zqi0w2OFu+ed4Rod6A4fwECjFbqn6kQ0oHXG759itTYQ9OsuhifbEIsGoFZm9p/dbpNNqeb/n3eypHahWCmV+zzHpTpSxRP4AZlA2wE97WJMms3amnjowCSB/n4mjvhVJeWzq8r4pbcszQnvsM/N0t4SAhzAbn1WwyS2H9gVd81ZEmhqqbZpkChy2C0o0PiiN4Y3PXfDjw+y4tDxzl+89vWa8mZSpZmw3PShOZoLL2shF9HvK+sfIeVRNocj5oay2YawwSyhyY2rUQEZQk9noCFh+bLuRpAFXSsiO0dd/lZ3VQEb6UQ7iIxIcuub2KtrJqng== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XCMS+YbSfAwyp6W6fe7rYKq/L/tFgk9e9zJ/1i+/t64=; b=HTm1s13zkgeDTWCqqWZU/MHES+bH3UDsin7LFh18mzqdw2XHqpgk0BxYYfdnX/ENO2Vqtl/fByj6vU980o6fBN09lfFWgx4IPtRblCOAuSqfvPi+pebdgUOi185QdeKjx75i2SqVPSfnSV49MpWaOaZ1lt6Fe3TstqYtzLOqAawSA4o8GH00qSKg8uA6UCe86f6cVigcjfZewNCgLSCZkfGCZ6qK4Z7NTWLeEytEpUoTyd+RicgpVlUiG+tiIw9SHYAObpb/N3RL0bPqLQ2dKR53RKL6QyISe44W1FLC1yNhB78fecJwyzhFJGKQw5RYM7vP2XZAd1fQOE5/mzRraw== From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" CC: Volodymyr Babchuk , Andrew Cooper , Jan Beulich , Julien Grall , Stefano Stabellini Subject: [PATCH 2/5] build: add possibility to use LLVM tools Thread-Topic: [PATCH 2/5] build: add possibility to use LLVM tools Thread-Index: AQHbQgDi2W51qDW1eEGcI05EH1vd3w== Date: Fri, 29 Nov 2024 01:49:09 +0000 Message-ID: <20241129014850.2852844-3-volodymyr_babchuk@epam.com> References: <20241129014850.2852844-1-volodymyr_babchuk@epam.com> In-Reply-To: <20241129014850.2852844-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.47.0 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: GV1PR03MB10456:EE_|PAVPR03MB8923:EE_ x-ms-office365-filtering-correlation-id: 4ff18fe5-fb8b-4270-986f-08dd10180647 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?Aj7v19V43kX/iYnuK2zEVDerSU?= =?iso-8859-1?q?R7Fa8r/EdGiifgt9FWNnIplneFXSQPnrFfJgWYWhBx7T6eUerZQyuFqP4rJ/?= =?iso-8859-1?q?mep3yQjV5tUgm6LxSGag/+mX3uGNdemnLxkYAHEkZrt/P0jfLfhbd5I7llwq?= =?iso-8859-1?q?dxaNM93Lq9uMOCsyPj+FmW2ZyBnchkpCWlIMcex6NVIa994Ejsxcuw8TX086?= =?iso-8859-1?q?KD6cCeDwIArrDrJopCISaqdOEZ4l6cypXWun3C8mWH4oRWu2zHOzh6TTuzVT?= =?iso-8859-1?q?uQG5jKIsK/LwsxMU+LByj4bCPePTNPImtlOoL0B5b9e0SzJ2LpKQRHTPJblh?= =?iso-8859-1?q?gxbP+q6PCFWoEd9FxVukiHnAXTS5bUi4HACAkbHAHQjPC+IOhS889g1d1uWO?= =?iso-8859-1?q?rgL+kJTKt1nbjZ1Bt186BrsI+DCBfiBeIQYc45vRV8a3EKTE08pbJaD7+P0W?= =?iso-8859-1?q?E1tihCdsHLUm9bLylyVzcizrcmaEO1xWVGsE1BszlPPbaeXWbGi7YuLX/NZg?= =?iso-8859-1?q?OaBVGT+OQqGNq7gL1+Ymgr7VWllMgSMTOTVaWOKHB+SsaA2ETcYYVyAomG3f?= =?iso-8859-1?q?PyxNj/6Z8hF7KOj31UDUxR2AwuhTAXCXGR6MmWH5z9kbYG8h+HJJRozEXtht?= =?iso-8859-1?q?GZIpaibm03YhMR5lEyMweA9xh+1teXFhgHxt/E8hOQFub9RGsOrtPxKFn4N4?= =?iso-8859-1?q?ZzmnQvKp/3BM0H/P0isVZiDcMhEANM86q7DEgFpFuZ9L+ed7dx7C0p4eJgVZ?= =?iso-8859-1?q?7q+s4pC9poYx+GDBD3LBg0rWYvxdPrjhfDO0ykMetn863QN0o4wf6AH/CCg7?= =?iso-8859-1?q?mFicD5XuCo1AkE4tHc/fwUrmE/COYyN1wpJuu3iNHZu738tZp+hXLTjcCu7+?= =?iso-8859-1?q?Vm69RfQXU2pnzdq4X1iKjwFfCRBjUmIRWQ1C4x0mEG8KwJjBjkyJPEAtBOne?= =?iso-8859-1?q?exlajAzkHbuKuuqYSpd8lycTI29I2U8OY2j0P7E2/scDnzVXA+dbGgbUI91/?= =?iso-8859-1?q?FTb06M+1JNtdEMbKZdF52XL0LqpS6hq/gCdKRZIyVHFs/llhxTAYlEdBEx0t?= =?iso-8859-1?q?8BSNqx9V+8f1Cj6eW8KKZmKqDXFKnQ2ubBCYLkS8M2mqpDbJm8NrGOZTciNq?= =?iso-8859-1?q?x+JCcRQx/1yL+7bmdG7DsDDu9KHAfpHELvfZK5vE4ygMHLYeNG5XSHpC9T+n?= =?iso-8859-1?q?MBSDYpJ0GfG2io+tOvtR8Po20Rx2cDpIRIyGnZlesNy43Ty6R9zAX28TmPel?= =?iso-8859-1?q?63Iw9xbXCFT9/qlm+FXmzS+uDVI/rKSbWKwrGeciETvyEUZQZi67ooK0hNNq?= =?iso-8859-1?q?LgEGfY32+3Prbds/rwnVBElXywbB06ZnTkXd6BvQvsdBlSEdoeK1nNEyg8uL?= =?iso-8859-1?q?+1zMqcPEzcbYCUEb9GOMFiUR1g4sI2gufkKljQRJErZkiZJYpJBHqUqD7RhB?= =?iso-8859-1?q?MtDNO/nZuTwuFWKgsOY7kRyg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR03MB10456.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?n88Tru2V4uwLK5QwMASGGCe?= =?iso-8859-1?q?d10iS+S+idx8EWtMd97IhZPaz1LlLumdHPvqaF35ds/XpxMd16aNczAGOjrD?= =?iso-8859-1?q?tspMQAcyIxyi0sXgs8RMZKP4O/f7eUhLgkXth9E2mwguyxmropACaD91RukL?= =?iso-8859-1?q?f5k3WNtVYTxle572l//ndyPyLDuhG1MLmWZXNPczpg3AhRU0gi7cJcaXmW1S?= =?iso-8859-1?q?H5Zet/fvQoN+TqxApksFpWaed21Xp/xUSK9BJMbiRB/2AhjtkySQ2tYYCNQk?= =?iso-8859-1?q?2j8jlwlviOtEIaDGG1OFj7YeMO++OPQjDcxmkM5jc6FfABLTuad8lidWxWzc?= =?iso-8859-1?q?oDAJXqq4NDeKzx3mSHkKbtOGA8TAUhG1g0jmVeKkFUOYmsgdBLCPixTB8c0U?= =?iso-8859-1?q?0u2kTIiuC1IlW/49RtlzVniBVxX0ICvIBYl+jT24mQpEeugRw0MCZfZaTXVZ?= =?iso-8859-1?q?X1no2p5RNCbJDE+UkmAvje8NGBMRxQpy0Y64AXoNXCke7TibcqxOG+uZa2zl?= =?iso-8859-1?q?nIeE5Q4PwQMSuAoRvHa75sA1OfJaxtl0cuxMypwTBQ8TMyOCMf3OmJSTvaJG?= =?iso-8859-1?q?MKd1DuS0uDpXbkDp68n/KsXvokJRMlMJVntE3r87Y7IawfjwfQpwDXHowl8t?= =?iso-8859-1?q?Ip7M76SnRr36r/WT4eVHdjaHfAGIM22xofU4F7jCK59IGXdgLJcHBuSa9Yas?= =?iso-8859-1?q?RC2Oer+Y/WaVnKQIbMv4HgdnrChEclWd/KWTBqjjT58BP614aTPZ1BSHt7K0?= =?iso-8859-1?q?jCU0V4cShF439DwxkrB80+CstI8hf+XeP6cevojxmg9jNnSOqu+mNhcaPF8e?= =?iso-8859-1?q?rifPBk5LT1ZBcYBpfZbIt+Y7XosPOe792K2yzI81dPClpYb9J0FKsRCOIb3z?= =?iso-8859-1?q?MNpOZeCM24SFpe97+/beytOzk6S4afAgzmA/yFmGV80K1ypat9RjDEjFCFWg?= =?iso-8859-1?q?etf1HWRJ7c7l7/JcMxheXZxWdZwfqK0QnUuEYaQ/v2bzS8DdoDDv8MLKJva5?= =?iso-8859-1?q?mXnmip70zg+wCxEHeI4G6T8E5XFBDo6lBbhmI31rscMPIwHodRC9kMgKobPO?= =?iso-8859-1?q?LEqp2Wpxp2K3nCQyGqUETsWyKctlOAdG981yp4T7GIqTAhf5z8iJkc14iPtz?= =?iso-8859-1?q?IHs+R+s3nxSJvO//mVnBtTMjb4EKkBpWtRgAal/iGg3GAH4Bnq3/GJTS+c+S?= =?iso-8859-1?q?SBmPyZl6GTtGo74ptZse/LGYr3b21jANdzN6hY5JqB1rTiv+hTh2v4K0/sUY?= =?iso-8859-1?q?b/7twvjq7KXdvdTwqLZFnGfjxpV4JVzYC3cEO93mY4EaQorcYWgnoNoij0ed?= =?iso-8859-1?q?IEQfd/maADhhFWwbnYCKy4BSWKkl3MFKOuuCm3rhCsV/hHsY7vQipX9OT48Q?= =?iso-8859-1?q?5I1sTG8cCw5ympuZDkbDx/h6uMIxHQdef/KKRnYrLM2GNe9EGE0PkYcurzXo?= =?iso-8859-1?q?0a3CwcBtvDAzrC1TurBIhYg6N7SeS8VMEEi8TffYFQmacvVMf+mj4Udw3EtM?= =?iso-8859-1?q?Q1s5pkUh23SPhaERv4rmafjNnKIASzI4GL7mtjwZnJwgleIuC45KNiaMDJN4?= =?iso-8859-1?q?hZjCw7tZRmteT1y/QEi7kv15mGArHQgJHVq/2be9fYEo1TMSCjvIFGF82onb?= =?iso-8859-1?q?qv4JaESLKdXlv+a48ndAHYiVE3XutvKJczMjkKw=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: GV1PR03MB10456.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ff18fe5-fb8b-4270-986f-08dd10180647 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2024 01:49:09.7274 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3oP/9zFhR+F77fJ3M0ZWmlV6pKb27QK59e0urS3Foyn+XXc3m+IOCy1NZXcZrDNrbYBMBHsbxu93ot9RaEDvJGO8sdRCGgKoVmapkgX+YA8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR03MB8923 Currently, even if we are using clang as a C compiler, we still use GNU binutils. This patch adds new option "llvm" that allows to use linker, objcopy and all other tools from LLVM project. As LLVM tools use different approach for cross-compilation, we don't need CROSS_COMPILE prefix in this case. Signed-off-by: Volodymyr Babchuk --- config/GNUCommon.mk | 16 ++++++++++++++++ config/Linux.mk | 4 ++++ config/StdGNU.mk | 18 +----------------- config/llvm.mk | 17 +++++++++++++++++ 4 files changed, 38 insertions(+), 17 deletions(-) create mode 100644 config/GNUCommon.mk create mode 100644 config/llvm.mk diff --git a/config/GNUCommon.mk b/config/GNUCommon.mk new file mode 100644 index 0000000000..71c2303166 --- /dev/null +++ b/config/GNUCommon.mk @@ -0,0 +1,16 @@ +# Allow git to be wrappered in the environment +GIT ?= git + +INSTALL = install +INSTALL_DIR = $(INSTALL) -d -m0755 -p +INSTALL_DATA = $(INSTALL) -m0644 -p +INSTALL_PROG = $(INSTALL) -m0755 -p + +BOOT_DIR ?= /boot +DEBUG_DIR ?= /usr/lib/debug + +SOCKET_LIBS = +UTIL_LIBS = -lutil + +SONAME_LDFLAG = -soname +SHLIB_LDFLAGS = -shared diff --git a/config/Linux.mk b/config/Linux.mk index 2a84b6b0f3..6f4dc865a2 100644 --- a/config/Linux.mk +++ b/config/Linux.mk @@ -1,3 +1,7 @@ +ifeq ($(llvm),y) +include $(XEN_ROOT)/config/llvm.mk +else include $(XEN_ROOT)/config/StdGNU.mk +endif SYSCONFIG_DIR = $(CONFIG_DIR)/$(CONFIG_LEAF_DIR) diff --git a/config/StdGNU.mk b/config/StdGNU.mk index aaa0d007f7..d723bc274e 100644 --- a/config/StdGNU.mk +++ b/config/StdGNU.mk @@ -19,20 +19,4 @@ OBJCOPY = $(CROSS_COMPILE)objcopy OBJDUMP = $(CROSS_COMPILE)objdump SIZEUTIL = $(CROSS_COMPILE)size -# Allow git to be wrappered in the environment -GIT ?= git - -INSTALL = install -INSTALL_DIR = $(INSTALL) -d -m0755 -p -INSTALL_DATA = $(INSTALL) -m0644 -p -INSTALL_PROG = $(INSTALL) -m0755 -p - -BOOT_DIR ?= /boot -DEBUG_DIR ?= /usr/lib/debug - -SOCKET_LIBS = -UTIL_LIBS = -lutil - -SONAME_LDFLAG = -soname -SHLIB_LDFLAGS = -shared - +include $(XEN_ROOT)/config/GNUCommon.mk diff --git a/config/llvm.mk b/config/llvm.mk new file mode 100644 index 0000000000..e474428286 --- /dev/null +++ b/config/llvm.mk @@ -0,0 +1,17 @@ +AS = llvm-as +LD = ld.lld +CC = clang +CXX = clang++ +LD_LTO = llvm-lto +CPP = $(CC) -E +ADDR2LINE = llvm-addr2line +AR = llvm-ar +RANLIB = llvm-ranlib +NM = llvm-nm +STRIP = llvm-strip +OBJCOPY = llvm-objcopy +OBJDUMP = llvm-objdump +SIZEUTIL = llvm-size + +include $(XEN_ROOT)/config/GNUCommon.mk + From patchwork Fri Nov 29 01:49:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 13888390 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 86895D70E02 for ; Fri, 29 Nov 2024 01:49:36 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.845647.1261001 (Exim 4.92) (envelope-from ) id 1tGq8I-0004Zb-L5; Fri, 29 Nov 2024 01:49:22 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 845647.1261001; Fri, 29 Nov 2024 01:49:22 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tGq8I-0004ZU-IP; Fri, 29 Nov 2024 01:49:22 +0000 Received: by outflank-mailman (input) for mailman id 845647; Fri, 29 Nov 2024 01:49:21 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tGq8H-0004ZN-HD for xen-devel@lists.xenproject.org; Fri, 29 Nov 2024 01:49:21 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20607.outbound.protection.outlook.com [2a01:111:f403:2614::607]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 24a6ae89-adf4-11ef-99a3-01e77a169b0f; Fri, 29 Nov 2024 02:49:17 +0100 (CET) Received: from GV1PR03MB10456.eurprd03.prod.outlook.com (2603:10a6:150:16a::21) by PAVPR03MB8923.eurprd03.prod.outlook.com (2603:10a6:102:32c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.14; Fri, 29 Nov 2024 01:49:13 +0000 Received: from GV1PR03MB10456.eurprd03.prod.outlook.com ([fe80::a41e:5aa8:e298:757e]) by GV1PR03MB10456.eurprd03.prod.outlook.com ([fe80::a41e:5aa8:e298:757e%7]) with mapi id 15.20.8182.018; Fri, 29 Nov 2024 01:49:13 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 24a6ae89-adf4-11ef-99a3-01e77a169b0f X-Custom-Connection: eyJyZW1vdGVpcCI6IjJhMDE6MTExOmY0MDM6MjYxNDo6NjA3IiwiaGVsbyI6IkVVUjA1LURCOC1vYmUub3V0Ym91bmQucHJvdGVjdGlvbi5vdXRsb29rLmNvbSJ9 X-Custom-Transaction: eyJpZCI6IjI0YTZhZTg5LWFkZjQtMTFlZi05OWEzLTAxZTc3YTE2OWIwZiIsInRzIjoxNzMyODQ0OTU3LjE1MzA1Mywic2VuZGVyIjoidm9sb2R5bXlyX2JhYmNodWtAZXBhbS5jb20iLCJyZWNpcGllbnQiOiJ4ZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcifQ== ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wcBursqTkwlaQrLG5sDu2k+Z3UWX2VZyzZMHxUzSSEZ5hC8afwJHFdv67vYoV/yDq/KFB3JXZzGXxtAJPRiI/9II3MuYHg+LhbrVBUJ0ChAFzTW1XEEep+gF3a8CspqR2AZFQRH4G5krpZZZc+FKHZv6y8Fud8rJWghxR/d8nJhD9Qf1uq9f/vJwooTnvXfDWSSW1T2xLlj6P2A5JQwX3VQJ4t0YQx6Sv+RfmhMgn4nDztmru7K2RE8qxyB4syd6hnKsqAJpxny0eYcdfcHGhZruyfQvS5F+tZYTORHhIkQFbSl5aHNbQg4p39azeHqQ1pdlfZQ+hdKzX1ILZDsnCg== 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=kqih6yfoliSqu4Tbh2SQlCEAACi38qPHAM/1ieOhAjg=; b=Lb8A8nwGOVmAdhyC5Qt8gg3gpcXhOOle2ygdwUYiSnlydq+yVDAJ9rC0BIIBBWTOFS1liyGNRrUFthTL4Ph1RtudbyzG8+WBB2YPuIwKRoLIoj/SQ9NgjgXP9Q6CBawDBeOhJZ0p4mDz72M2ruyNoBz+cn+6mGbxRNqX6RrtNck2w1VmJQ3Q148bbVtB9Wr6sw6f3g+h+/jusXal7Xk0L/unDR7hf+MGmuUnozGIHwVwIKz9xG+7qYZj717q30J+PFEPwXlukaPOIX+eFPCIdwEw7aVwgxX1YBng0wMBqJcTHnIsX3WN29/Qn1iVG/Qq1CTraiZHhiPnM84QsEK4yg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kqih6yfoliSqu4Tbh2SQlCEAACi38qPHAM/1ieOhAjg=; b=iV+s8dZQGxq8gKdV5CExd25F+91htAFnn2z6Y67EU1y7KyFEaD7XsL5/oj1VOdzKsYlPOBGCcOMiYhEXC0sZ+DpIiU+0qYp9ytPUe55ZZf4NgxwY243uuckc6t/wXjE8VZlwk1voiWQF179+4x0zDD5/45KdylyYUSV6RfTG9FODXVhKpmbuuAeCJcRdlNPc255DXyTzMJK1WNMIEQlSbHn37a69knWjX0YZTd0qrHGYJ/DCVyndadEbQCqIJdlYR3r68aDvboKRJ6rX78Y11XTxkW4YJOHdxjzyO62jfaLxi+YL+mU1OfN3/TC06tmAfpwlnqj3tdjXHWNqlypXEA== From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" CC: Volodymyr Babchuk , Andrew Cooper , Jan Beulich , Julien Grall , Stefano Stabellini Subject: [PATCH 3/5] build: arm64: provide -target and -march if using clang Thread-Topic: [PATCH 3/5] build: arm64: provide -target and -march if using clang Thread-Index: AQHbQgDiBM9r6Gu0CEmbvf51boI0mQ== Date: Fri, 29 Nov 2024 01:49:10 +0000 Message-ID: <20241129014850.2852844-4-volodymyr_babchuk@epam.com> References: <20241129014850.2852844-1-volodymyr_babchuk@epam.com> In-Reply-To: <20241129014850.2852844-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.47.0 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: GV1PR03MB10456:EE_|PAVPR03MB8923:EE_ x-ms-office365-filtering-correlation-id: 165cc14e-36ee-4cab-4c47-08dd10180681 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?k/7F6/V/kCmzyHsrpm+/wJ+JHn?= =?iso-8859-1?q?8r5zKO93IaroKqugUrcxwS6ITT957PNac4zbhVMKGL6pfzpddxDWShdmdvH/?= =?iso-8859-1?q?TCdfAAOXdtkiq4E6SNDGSQEAjQ/QX8gi1uTuO4ww/4bKm4CdLPe9WMX0LdMw?= =?iso-8859-1?q?tIc3PRpm0iYMND7VieEhvTc0LyQdZ1nq3C/qCC7A/SGtRRoiL3XAJXCfIaVI?= =?iso-8859-1?q?9UWkT4aosB96iSt2k9TbQ4uZZavIhK/jfi60mQvK50KfvnZ2ewxC0aotvAGD?= =?iso-8859-1?q?R6BN+tIlmyusB9MXzN4onso2EEPtJmBUfYbczafz9cJdKG0//HFFRQIYTE4I?= =?iso-8859-1?q?W7REpD9Vp47aOUqO7DQ6VhQfWRvCl7Xumn0jJ0FEyFDPwOG6jesxt2Qe1FfE?= =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1q5d/YYcCTZ+FoL6vpHInJF9l3js3y3Ooh/2a3kjjP84+YjE/dZfSvZ48I?= =?iso-8859-1?q?Tk85rFHL2UuulBQsZ+QqXqajuiYTMZhSw4PzH5NJY/bkahzDOqGOyInAagxz?= =?iso-8859-1?q?VBPQN0qnP7i2Kl82uoSqAtf6eItX8fNoLw2jpuHsnFfFSK/Dk11h+6lnbLux?= =?iso-8859-1?q?aDoqkUE06ITiRGAUOTsz28cQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR03MB10456.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?7Ki0+8o/D1vvq5tR6nMBcsw?= =?iso-8859-1?q?r7bHft881XqevqH5IsvexwoyJ01EvAVhwOOeU7+J/gAYtNTqHRpgS+kektFj?= =?iso-8859-1?q?chUCXWyXymJlLIVc0PX3jjJKcYAKOzuFX9T+5unoH/DWchiUvbTJqN4mdzjE?= =?iso-8859-1?q?I37faUruxL45ZgCgyjPbwcmw0jrVcce6hxqXsE8ao0vAzLo+v8il7e30hEWk?= =?iso-8859-1?q?xhm7IPioNAOL9ZRtV0nlfO1Ak+uRObTK9VOmP8yPgQL703Mob7YWs8pyXxn2?= =?iso-8859-1?q?nBlCx+v5vgY69/APXprvHpfYdPyPC30oWog6747yTicNBB89fWbCD1DxpqwF?= =?iso-8859-1?q?kf5FzfqAYCZ3O25a3opEsEib8eqzgMJbaDD8lRK9Pikh8BKHxT6dvPKEBiDv?= =?iso-8859-1?q?xo5NDmPz8tfOsJJZ/AnfbonyF0U0oa9z7ZDVpjZnfaE//zsK+y1Uvbk6e1kU?= =?iso-8859-1?q?6oyLEOXpBOvrGeBDPp6EZwLdWPli6Q41St1qoTm1/VFHTDTXN87v0puBxGok?= =?iso-8859-1?q?8U9E4kz9rJlgaJeWT3i/CP4zm/npS2lCo/2Nhe/VPeg3Gq/R0OLijJST/SwT?= =?iso-8859-1?q?fkj+/8BbM6KikDSJNNaIrD5kgE8lecBrblWNvWCI8BvSOUnHC2eglHYh4Igr?= =?iso-8859-1?q?TGedXy/Xbh+5R05qWMyd6dGkdPMQKwlunGsznN27sT8Llr9wrqs1l0UhUwdS?= =?iso-8859-1?q?vRWSLizLiL9Vf9rj1NGjK2jnPCXUlRLCsgC8EdLwm86/L5mwgSffTNpmPWJx?= =?iso-8859-1?q?gjuxa/ePohQitq8h5mxaw20q/dSaunHbH8T8h6XeDy+UFhA4oiwBLMC6HI80?= =?iso-8859-1?q?TxasqLNiqZeFjenHQCU8jALuf2KIofw0iaMf5AWCh6VgfrP0izjqGq/ickPa?= =?iso-8859-1?q?nSTp/JwT0fsFc0hsuSVzPfjysZd72r5Cug7FoFkwQfXDO9P91n20CR+WgmYd?= =?iso-8859-1?q?dCcXYQpNIIpgB/dIQcYFquAYLbn0mIYCV7WD9EvJJOoKZSvF3EQXI3RgY02E?= =?iso-8859-1?q?mJvc7jF/HmFy/+9YRoIeXk0aIdhftmFittj1ef/0T98n3fZoL/HC4RATIgzD?= =?iso-8859-1?q?EtccyeoddXaswG3xc9JhxRhsSXDclFzSVGiU7ZNI+7nhX0Xm1KW7/gEIDhl+?= =?iso-8859-1?q?xH+qHKNHrJP5OIs9hMb8AZjxvkj4MpEW3idD/FVIQghH74eE3bfLDV1IFfty?= =?iso-8859-1?q?Ktgqdvt/6J9z07l8YnxRn18uRISL47Luos8T3xiIuPJjDVIgFEDfW4TDNbEi?= =?iso-8859-1?q?QFmuiqE97zmE4Drl5nwCGGJfwqmXTdJfu2r7EJx/vreReRmUd1ab21iH/YBX?= =?iso-8859-1?q?YdOPuecxyC0TOu1czFPiRNKkVMIC3/7aA1Zu/GhDtrw5/313sm2jAZbiOukm?= =?iso-8859-1?q?b9RBWEjV7qgQpS5AHAtBUgjbTatSdoBkIZDlDu5DLZDS3Pyjq/6EOz6/Io+P?= =?iso-8859-1?q?HsBMkfRq/fgAoD8BfOQ5gr4X0JB807bz816AvJdc9kREqJmrUrn0Qb3cQ1kv?= =?iso-8859-1?q?DEsIbr0WOa0zNeQYKGBhMxDeh8/oZl3fX32QUtVbZfmlX0dvtdYZKsaOO3tX?= =?iso-8859-1?q?HGxVg16YzLXwWJElI2S4SuAyzxMULAFaYkM+bK1g2m7XFdEKf6cRBS/68qmQ?= =?iso-8859-1?q?EIPKVWCEJmtTikXLukSZ2zKKt1ZT0W1brIwVfCw=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: GV1PR03MB10456.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 165cc14e-36ee-4cab-4c47-08dd10180681 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2024 01:49:10.0098 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: lsiy5oN3ID1qZdSaOKK15xr14+CggKLAV/EPj/NAXqgDf/UldSHAg/3KRpW/93+Vd8lwmHPI5IFAxNrDO9ca4VSCBfq0pnm+lMwQvpONNVE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR03MB8923 Provide -target and -march explicitly when building with clang. This makes cross-compilation much easier, because clang accept this parameters regardless of host platform. Basically, make XEN_TARGET_ARCH=arm64 clang=y llvm=y will behave in the same way if building Xen on x86, or on arm64 or on any other platform. -march is required because with default value, clang will not recognize EL2 registers. Signed-off-by: Volodymyr Babchuk --- config/arm64.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/arm64.mk b/config/arm64.mk index c4662f67d0..97eb9a82e7 100644 --- a/config/arm64.mk +++ b/config/arm64.mk @@ -5,6 +5,10 @@ CONFIG_XEN_INSTALL_SUFFIX := CFLAGS += #-marm -march= -mcpu= etc +ifeq ($(clang),y) +CFLAGS += -target aarch64 -march=armv8-a +endif + # Use only if calling $(LD) directly. LDFLAGS_DIRECT += -EL From patchwork Fri Nov 29 01:49:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 13888395 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 78D88D70E08 for ; Fri, 29 Nov 2024 01:49:38 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.845649.1261018 (Exim 4.92) (envelope-from ) id 1tGq8L-0004rX-Dh; Fri, 29 Nov 2024 01:49:25 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 845649.1261018; Fri, 29 Nov 2024 01:49:25 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tGq8L-0004rJ-4u; Fri, 29 Nov 2024 01:49:25 +0000 Received: by outflank-mailman (input) for mailman id 845649; Fri, 29 Nov 2024 01:49:24 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tGq8K-0004ZT-4U for xen-devel@lists.xenproject.org; Fri, 29 Nov 2024 01:49:24 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061e.outbound.protection.outlook.com [2a01:111:f403:2614::61e]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 273d2816-adf4-11ef-a0cf-8be0dac302b0; Fri, 29 Nov 2024 02:49:21 +0100 (CET) Received: from GV1PR03MB10456.eurprd03.prod.outlook.com (2603:10a6:150:16a::21) by PAVPR03MB8923.eurprd03.prod.outlook.com (2603:10a6:102:32c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.14; Fri, 29 Nov 2024 01:49:13 +0000 Received: from GV1PR03MB10456.eurprd03.prod.outlook.com ([fe80::a41e:5aa8:e298:757e]) by GV1PR03MB10456.eurprd03.prod.outlook.com ([fe80::a41e:5aa8:e298:757e%7]) with mapi id 15.20.8182.018; Fri, 29 Nov 2024 01:49:13 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 273d2816-adf4-11ef-a0cf-8be0dac302b0 X-Custom-Connection: eyJyZW1vdGVpcCI6IjJhMDE6MTExOmY0MDM6MjYxNDo6NjFlIiwiaGVsbyI6IkVVUjA1LURCOC1vYmUub3V0Ym91bmQucHJvdGVjdGlvbi5vdXRsb29rLmNvbSJ9 X-Custom-Transaction: eyJpZCI6IjI3M2QyODE2LWFkZjQtMTFlZi1hMGNmLThiZTBkYWMzMDJiMCIsInRzIjoxNzMyODQ0OTYxLjQ4Mjg4OCwic2VuZGVyIjoidm9sb2R5bXlyX2JhYmNodWtAZXBhbS5jb20iLCJyZWNpcGllbnQiOiJ4ZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcifQ== ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RDgX81zyQoBybsO0w9cajZTkNvfYZ/li4C8vzWGT3nbnlIdkL6JBo+fQ+gG3k2YN+rh+z1TazodFHLo2ey00ZHuI9LAF/6CndBEiZZefhvtphrAcy7ew5SP8mTMuWmx8Wmolt4DTb2jQWjjD4z6zgBSc593t+uafO5j/amFsrx3FBGOcWtwV9KNpHddwYGEiY8gfLHT0d3EJvlAGcYu1fU3VAX7/TYvORZ7LeMy3OfoVfubD4sz+426YS2kh0akvADDSPMrMxCV/eWOaZuxWxlKo78JUpmjj4Uf8RcfDxUi8j0J1le/5e5C5p62QMd1TOWS0qEIW2OTBn1EJ6sEV2w== 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=cT9VoTsV8c2mDTKSh8O3lk/cPOowmpDe2ws18KxovqM=; b=j5/WdM5K+5Eo0/8EmIyZPCwxwIpa3noy9SK5kotAifgTOR1bZgC1buxCTffRxV5Zm/pNFdy6uLd6aFWOeXLLKvbO8PRKPPPfcMwiWHfmYOCysPCNXhLojBCJs4wKUSIWAySszA8EOMpiiVgt3nf8P62Fs8MHBOalMri33NXyyPgVYuhaL3yAVpqbRJ33eaH8iCq84LCGbD3Xa6r7AQh5oFbj6I+sdASkiWXyqBKpwTUv1X2pcMwT3LmjsXR8qhKle1siPVvb3+wMDGlZC45MdPecivLqs6KNkkbAGZ1/6Npuga4yq6giw+jvxSYjo66yRujeXLCQHC7oKsXkoxxeZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cT9VoTsV8c2mDTKSh8O3lk/cPOowmpDe2ws18KxovqM=; b=YmQN6avDxaVXuHeKlwjxsuUgMn6PFaZXB0VKR656bodv5w5PIJORYtAEfhTJZEkA0/ubyDToSAP8JRRuEd4doTFaSBaPGOdErIIojSzvl9wdw1NF7vm3vTPBhxbN8MaQk0xT++zFdSkuPETZq0j6ke2tpX6jRCQpzL0BqCg3ZEpnrhaLb2ZLI2dymupNiQVS7UaIBHPfn1vzLn/Gl2CQX5uPwDk4l9ggCT7r721BE+GKHhHmXRWrC6A93DnwFF6iBsZ7w/RV8L0nhHaspTAnb88Kozze947bSsn3gA5KtdWUPG/8oIIhPy3y8nudozvwMq9Ri5FyJQ7oOLPFrvXvJg== From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" CC: Volodymyr Babchuk , Andrew Cooper , Jan Beulich , Julien Grall , Stefano Stabellini Subject: [PATCH 4/5] xen: build: add support for CFLAGS_REMOVE variable Thread-Topic: [PATCH 4/5] xen: build: add support for CFLAGS_REMOVE variable Thread-Index: AQHbQgDi3w2c4ZYqbkyJK+dadw8SYA== Date: Fri, 29 Nov 2024 01:49:10 +0000 Message-ID: <20241129014850.2852844-5-volodymyr_babchuk@epam.com> References: <20241129014850.2852844-1-volodymyr_babchuk@epam.com> In-Reply-To: <20241129014850.2852844-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.47.0 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: GV1PR03MB10456:EE_|PAVPR03MB8923:EE_ x-ms-office365-filtering-correlation-id: 0d3cf442-6c55-4133-67eb-08dd101806b7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?+1o7mVMWwdo0HqOI04ZnVzfWtT?= =?iso-8859-1?q?paugxIdzWButim8uRV4OpefkHesv61dAGtetkXoe2aUJ/UwDgj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ih5ttyTj0H2JjQbZFGZZWrzJvWlOWRdu8JkW9FMBoXFw50YHc16idU?= =?iso-8859-1?q?sNFVp4jNqFi2XU/UB7532H1lJwvT+AmRvBvl3OltcJGbXoL2EJw8VNW9zHQG?= =?iso-8859-1?q?aK2UU+gmgI/wlbK9IFL7CWjJGQ8OMMT7YTcbXeoeFhI3IjaLuiaA61j2juVK?= =?iso-8859-1?q?8Xbk7sJiZTZPxayegaSpEMiAaoCtOlLEcjlibEVD/t8niSQITOGk6/WsagCv?= =?iso-8859-1?q?BcGs+KzaoStIbN9V1VnHbPgW07fS4AdIO+2SkiYOnh8HyTBWRcj5U78Ah1Oi?= =?iso-8859-1?q?kp2wDTtq7KYzWlfsQgX+fIfkzzWW2f4CZj+9oB9e1sXNRe+3ZFV32ow+NvGw?= =?iso-8859-1?q?zYwFklA6OBRwzw40XzsU/erxsQhpk4uWXGV41nbm5bKaeAHS/yL8tKGzmgCt?= =?iso-8859-1?q?wj4fHTX9jiaO6FDL0E9iNNsILTMUsWHzMfEtffmEVP0CaGPfozcEfJl4ErH6?= =?iso-8859-1?q?uP/cpBZtFkFrZmqItJhvCoJg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR03MB10456.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?o8RwojEdQzIjXEEdFcJkjiq?= =?iso-8859-1?q?WqurHhXjR73BW0o4HfkiDMNczDjtzhCcuTMYS+28eagkDHn1zJ5ld4bYjwya?= =?iso-8859-1?q?tZp8LkqWVW4qP5xW/h5xVMxXDu17pT03MIk8WiX2E73GqkkX3K0eWGhFTDij?= =?iso-8859-1?q?doF3Vjp7miAjVHfSpNr91u2ff/ODmtqT5hsP3pCq9CX6STHgh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?K9zhQLGSeoTUhgqERgM85CgjU9PAiHOuH+Cw66VeGrbuwijPWRhuuTp1wmnf?= =?iso-8859-1?q?D6I4rD2S3XEYwLdz2f/+l9DrHrIeK1y/EGCOIFCnJdKzsmsbjrZql+Dmilzt?= =?iso-8859-1?q?r18s/k+2o87yThz7WLjlDwHdlrLoVdvxT6DwjHh7ha7kKYNKqNJlDV2T9Njl?= =?iso-8859-1?q?8H+Jtdux+IOCAC1DrLpXoYYoRpjc/dQfa+B5Fb6OJgHFwJHGySzI6aL5A4yl?= =?iso-8859-1?q?OXGfE8e+pbkSF64yDdNJJm5sXGSi6QRQO1kc/FBGk1UeSnAMq0rM2DOuK28L?= =?iso-8859-1?q?btjyfcGTZ4UVS3oIpvKepYVvlx8PHoDv4e2zGdc10hiNiu2nLxUtiESmHSZt?= =?iso-8859-1?q?74WpUlrD4FeIDyXWX79yAxKlrHQLE4hlkwSW0eNwzNnUmY9O1pjLnz6XpjYN?= =?iso-8859-1?q?xKmJp7+G/nbjBl/rQqXlXL5q6ZSqopviCRUvhXwpl2GDOvFoI4C+klLl1lpC?= =?iso-8859-1?q?b9spEfAQrVHMsTNyldcZxnsMoAO6heWwI2D5F8qARdc3UAkXBesPQE1WrIgt?= =?iso-8859-1?q?UGmaopq4NcDV/v/jfUaDllUakVFkjdQY5kV9IiA=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: GV1PR03MB10456.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d3cf442-6c55-4133-67eb-08dd101806b7 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2024 01:49:10.3550 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Q7+/6pc6IkzcQJEu+rBrYKgs/3DsLZwS7rv+LadTdSW0yo+AQw7TGXAz0k9nL0W0RRnlQ9+WJY7UyWPpCYWdx2/K5LPNy71t1VBlFVHYlnQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR03MB8923 This variable can be used in cases when we need to remove certain CFLAGS for particular object file. One such case is -mgeneral-regs-only flags that should be omitted when we are building an object file that uses not only general registers. Signed-off-by: Volodymyr Babchuk --- xen/Rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/Rules.mk b/xen/Rules.mk index d759cccee3..478318537f 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -179,7 +179,7 @@ cpp_flags = $(filter-out -Wa$(comma)% -flto,$(1)) # Calculation of flags, first the generic flags, then the arch specific flags, # and last the flags modified for a target or a directory. -c_flags = -MMD -MP -MF $(depfile) $(XEN_CFLAGS) +c_flags = -MMD -MP -MF $(depfile) $(filter-out $(CFLAGS_REMOVE),$(XEN_CFLAGS)) a_flags = -MMD -MP -MF $(depfile) $(XEN_AFLAGS) include $(srctree)/arch/$(SRCARCH)/Rules.mk From patchwork Fri Nov 29 01:49:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 13888394 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 77245D70E05 for ; Fri, 29 Nov 2024 01:49:37 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.845651.1261042 (Exim 4.92) (envelope-from ) id 1tGq8O-0005Yv-5R; Fri, 29 Nov 2024 01:49:28 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 845651.1261042; Fri, 29 Nov 2024 01:49:28 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tGq8O-0005Ye-1T; Fri, 29 Nov 2024 01:49:28 +0000 Received: by outflank-mailman (input) for mailman id 845651; Fri, 29 Nov 2024 01:49:26 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tGq8M-0004ZT-3F for xen-devel@lists.xenproject.org; Fri, 29 Nov 2024 01:49:26 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061e.outbound.protection.outlook.com [2a01:111:f403:2614::61e]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 288545b5-adf4-11ef-a0cf-8be0dac302b0; Fri, 29 Nov 2024 02:49:23 +0100 (CET) Received: from GV1PR03MB10456.eurprd03.prod.outlook.com (2603:10a6:150:16a::21) by PAVPR03MB8923.eurprd03.prod.outlook.com (2603:10a6:102:32c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.14; Fri, 29 Nov 2024 01:49:13 +0000 Received: from GV1PR03MB10456.eurprd03.prod.outlook.com ([fe80::a41e:5aa8:e298:757e]) by GV1PR03MB10456.eurprd03.prod.outlook.com ([fe80::a41e:5aa8:e298:757e%7]) with mapi id 15.20.8182.018; Fri, 29 Nov 2024 01:49:13 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 288545b5-adf4-11ef-a0cf-8be0dac302b0 X-Custom-Connection: eyJyZW1vdGVpcCI6IjJhMDE6MTExOmY0MDM6MjYxNDo6NjFlIiwiaGVsbyI6IkVVUjA1LURCOC1vYmUub3V0Ym91bmQucHJvdGVjdGlvbi5vdXRsb29rLmNvbSJ9 X-Custom-Transaction: eyJpZCI6IjI4ODU0NWI1LWFkZjQtMTFlZi1hMGNmLThiZTBkYWMzMDJiMCIsInRzIjoxNzMyODQ0OTYzLjYzOTA2OSwic2VuZGVyIjoidm9sb2R5bXlyX2JhYmNodWtAZXBhbS5jb20iLCJyZWNpcGllbnQiOiJ4ZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcifQ== ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oh6dRaKR+VQMAflkQkxW2DNMvqXPAMFLySxJ5CEFq4wgJPtg3hS4mWWJyl5oYGgdpNzznmBbxN7lzG+1KKOPQqkMhemxb5q6BkvPjcHPvDyGeEwesTCSUw/BGItx5WO+uWhfl3Gdlh5yIKDgKFCelBQwrBWBrJ7Yy7Uf6lQuLHkErU7eWAGw4WxJZWXSprXnk2Xs+Cp8xwwEH1A40xU0EHuQLGV6AhG77tbOSzHz5708SgOlw9bUrPx6tPTLm/3UtXwjx5Aw4ewRA5+n+xbAIt0/WNHjfo5w1sxfvdXArIJQteE73q17JqGhClKrgyqTEkvVmiNahc4HiASz1lVk3g== 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=zPCV0KRt10rVJH/0K9SWhiiyCsf6ZgnkvvhOIytXR7E=; b=PzWzCOu1lP3pwQPSWNOV8sAui4i8AkF7t6AqSvvDKErogzBq3p7PGXa39Pp93fUd30PjKM1jecEwnin0ncOWd4u6W9pwqV1i8g/T1tsaXda9pwd9AePeso/LDwbSqtTNkAgdVs1zAODYtzKe+Y1HxaXUDwQvzggepZ9MACBW73ULu7cXmC3Gyvljl0ys7cCIe9ZRMS9KalYGCM8t3mt4BtqTSImBNPqVldC8DxQm7cS8481E+siB8VezSKFpVZJFQ0hfiSQWLLt4rKdGocXZI08jc8f5pAxSWrIpsP9JuUMQ6C2BV/GzS82gbyuSrBwLakzY1sKEioIotnmv4+WgKQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zPCV0KRt10rVJH/0K9SWhiiyCsf6ZgnkvvhOIytXR7E=; b=YMYb/U8Lywm4S0IKT4zxkwwIdatE016Q2JOV7K2mfu9AQfmx08EbhRfvPvF69YNsB0TbwBlWe52WzGXd4ZMOPXnQJ1tm1JpNTW1DFWgv5A74hbmLvR7sG6VvNlDr6eIJ9kR66eyjXHJk4P75OcnDqjAjARL+Ny44eRlXLOi9WnFqe8+cUfWPJPPyPIo92BxSGdMzLkq2cl3lPWri/G61Sn24I3WoPtnqu+6KsVmaMpwRUP8xqgJ+PgeckFuTt0deiGZ9j7S7phNmI2QTIg2qZS9GrQ8UHmPLOLNtjBpr+7wRbqKvDcqmJzcKNvovHjepQTPssB919s8I3fTezldFIg== From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" CC: Volodymyr Babchuk , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk Subject: [PATCH 5/5] xen: arm64: remove -mgeneral-regs-only for vfp.c Thread-Topic: [PATCH 5/5] xen: arm64: remove -mgeneral-regs-only for vfp.c Thread-Index: AQHbQgDiyfh8gYRhRECvxQLXM9bgDQ== Date: Fri, 29 Nov 2024 01:49:10 +0000 Message-ID: <20241129014850.2852844-6-volodymyr_babchuk@epam.com> References: <20241129014850.2852844-1-volodymyr_babchuk@epam.com> In-Reply-To: <20241129014850.2852844-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.47.0 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: GV1PR03MB10456:EE_|PAVPR03MB8923:EE_ x-ms-office365-filtering-correlation-id: 5dca9183-548e-41cd-3b79-08dd101806f0 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?oSKJ4V0XfCqexXOFqRrCYyCNTJ?= =?iso-8859-1?q?U9YxCWuIZPzBefNSE2ir3DFuH/FsMtiZktV6eOg8pK75uJVFfqsKWfVP4nvw?= =?iso-8859-1?q?TQqC79XYzAB+VbUPQPi3PjTml/H/C7cgzD2+DxbmlX8osg3qQoG83UE/658w?= =?iso-8859-1?q?dvRmxf/Sq4Ep6OIBKO/rs1AO2WNLPqMXnOg67aJPMn+E4hQsBfprNpQbJ4YZ?= =?iso-8859-1?q?/no9qHOmwiSUXzBLqOY6NQiq2BszwZB1VujP+tXf2FC7cRSBQtRRzUFnqyKU?= =?iso-8859-1?q?MA6VND9+fJrQhl1vygQGLrxNnlOilnleUhn/H1S9ALdn9eMgPKp0dF9jmw/8?= =?iso-8859-1?q?7WYVb4kHS5RCTBQjM59DwxGYH/ZkFaBUyTJEL37xd7eOl/3dvJV6MRrhWxzz?= =?iso-8859-1?q?/ChpteFFswXIIGtrtg5FjW6UdQ/aZFpzJu6elJKeHGpPzthuaMZQ3+Hit4bz?= =?iso-8859-1?q?zBGxIzW2cOASUP218b/z2ctTWFbUc0rtADjPtP6v2enptiWBx523wgqHCThi?= =?iso-8859-1?q?msdwJx0TrOXV9mfdSvms5cRJyyXRJBT8izQ8MD6q5hAEr5U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so-8859-1?q?1XTRMwMl3Q5w+oPa6EoPoaPQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR03MB10456.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?PXoL8CCVdolB76JtMkNI/R0?= =?iso-8859-1?q?wsNOPw7ta9AWl/CBZazr9y+ivnOvWD1IoGZSO8rPm8JF2jRKhBtfbE/DtJFp?= =?iso-8859-1?q?S4nW/b6TjKiH/kwuN2IqSnuUCqS/XNmfQVzgpn9T9eZFzZfWrc709dxMpuCv?= =?iso-8859-1?q?N3eImoLUKiUuFmxo8BQgSiYJc5oEfT8cSRCzK5YqUcZhG6ZEMS74963NQjZz?= =?iso-8859-1?q?zwUMiYza1oACL6u2+scNyTmYVC6NMxC+b3EZCazusYQJfYS9FzP4QJTs3RPa?= =?iso-8859-1?q?wm4HZNvD55pVZYc+1/7D3rEsd3jmsxEjT1Z7WH/2K8LyZoVeIlTqoVf+2cOZ?= =?iso-8859-1?q?TygTe7UNPBLVTurmqZYN+s5xCOy6t3AG53UoDzTNXgHZxSA7v0mvXihvJsw0?= =?iso-8859-1?q?sUerzo44/aSwpUPNgkBUPbMImzLeQy91R1DUIvuKkk/hOhPuN3f35JpapTqc?= =?iso-8859-1?q?KF9Tvaq9KQ70xWnvHjRFske9droR+Iqq0RI4X0QH8uOVloraLAN0Q13yCh0f?= =?iso-8859-1?q?wg3rz7foDvDoc03EwJdLZJAEeQHUQ6AnbNNN2+PMdv4veaiCJXpVMdnzwtGC?= =?iso-8859-1?q?Q+73DVxVpNc7oU2S4XQmiVCRpVQMXWgD9Ys+e+40F+En7ifoJPkTJ7Dq8B/n?= =?iso-8859-1?q?V4xExoyuOl1Sq/Qk6DRHOE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GVrIY2RPp6wigdYQOxClRlCE?= =?iso-8859-1?q?Z8PShnhjP/6lzzykuOVqbE8VQKwpOGzf2NlI/muuV7BhjNnp3hJg8lsKqjIz?= =?iso-8859-1?q?MfMxQ7G0UXeZFBIg24Qoy761wtkWzZNa8I5mIzg=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: GV1PR03MB10456.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5dca9183-548e-41cd-3b79-08dd101806f0 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2024 01:49:10.8252 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7D1XuYr1mQz4162UXjc0dXa7upQX9aqEOsXKqD6iPkxFPBkOPNzz2W1My0h89TdF/eAPaIW2fDLz+F+7PcBDSBMizvbacok8vqwK2iVPfpw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR03MB8923 vfp.c actually accesses VFP registers, so it can't be built with -mgeneral-regs-only flag when using clang, as clang will complain about this: arch/arm/arm64/vfp.c:9:18: error: instruction requires: fp-armv8 9 | asm volatile("stp q0, q1, [%1, #16 * 0]\n\t" | Signed-off-by: Volodymyr Babchuk --- xen/arch/arm/arm64/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/arm/arm64/Makefile b/xen/arch/arm/arm64/Makefile index 6491c5350b..af949b8ee6 100644 --- a/xen/arch/arm/arm64/Makefile +++ b/xen/arch/arm/arm64/Makefile @@ -18,3 +18,5 @@ obj-$(CONFIG_ARM64_SVE) += sve.o sve-asm.o obj-y += traps.o obj-y += vfp.o obj-y += vsysreg.o + +$(obj)/vfp.o: CFLAGS_REMOVE += -mgeneral-regs-only