From nobody Thu Dec 26 14:17:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=epam.com); dmarc=pass(p=quarantine dis=none) header.from=epam.com ARC-Seal: i=2; a=rsa-sha256; t=1732844985; cv=pass; d=zohomail.com; s=zohoarc; b=mNaRlsaLFGLjzQHnVJ6wlj+bk7ed5E8WE1KNdWefb7+JhRYBSE2v27ZU5WScCPI0lEudAemOv7+LxVh5KH01RZkpfrHDr0aQbfqv9wEUgt+jM+0uM8y9yhZ58TkcggETVrb/azPKGPVscab8FRPsdehGBkOejuS7YRRAVZpKM6Y= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1732844985; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=91rks3iGHddXWlb9TaITzGl1ioO2H4KAWWNhdEIdpuY=; b=AOGGU8yPlc5c5mCVCLgPIsRPeDgFOt1ytOwbU34S0o5vivtU5WZRO26+CIB5KZG6ZKSTaShfK08mrWzbv0AwX9jKkr480hrCtx6ecDzfYg9TNjpfmI90QdXl5T3fSLbFt0uRFoghLvzfSrfVyOMEpTj4OkPpP8bMWsrNEMeeokc= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=epam.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1732844985755389.7731146799787; Thu, 28 Nov 2024 17:49:45 -0800 (PST) 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 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-Outflank-Mailman: Message body and most headers restored to incoming version 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?ssDuXYd05OPtTtNdezV30qDr2yKvhq8X4SoRzCrr4r8Qh+bAe4Na2xdvFk?= =?iso-8859-1?Q?MS4ATc5RAzPbmfyiItugjLQfOeXs6pJ9oOygoGeo1E7wqGw9Xct7m7r3nv?= =?iso-8859-1?Q?Y6YaN4mr+1LILMmSABIp3Xr/Y6ApItzX7D1PgatfRX8Gfmq7OM0WV67Eoe?= =?iso-8859-1?Q?1/9TNWnq/IekyXNSPRg3nlDPGzxTKGCZjb1wKlakxh1nav0W0UqxVMwIoo?= =?iso-8859-1?Q?aapX8DV5y52O3mG7qbPeXgJW48BMBR2C4BIJTBRbK2RX7slBmKadNE0yRk?= =?iso-8859-1?Q?eW7n+e8JyLLH0dGulPlPzgb9WzdbPHYGGOTYjGFKPNmIzSstYNq7GC+lbo?= =?iso-8859-1?Q?SzvWi7hB/f7uohB+y6AoqfWw4BGJOKl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1?Q?dK2z3Br5f82qZHJIpCf3USCEVHOR2L78vR4+Emx8jPCPgmEcNe8B42dvbo?= =?iso-8859-1?Q?jgQVYAf0o2T7D6d7rwZXm4HbGJn5oTE7eS/NsLTOHVkn8Fkka6Y+2DviE3?= =?iso-8859-1?Q?9S4ZjOayRl0kwz23jxcArFH2ksS+UTb17luZNun7uBJ1BeITuCu6cgI4Fy?= =?iso-8859-1?Q?XlKeNjgep9lCWPuifAnjSnhySSPAwosq7eiOrg=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/VuJPMEYnRaPF/jvCvYMUYrkRXMwnIxBgzh3ICDcj?= =?iso-8859-1?Q?GUyL9jt8Ah888u87lkPOlIDmuFgTU3W+Sa8JkpwT9pNjQpfMLyoh3+yciE?= =?iso-8859-1?Q?xZyNWP4Eh5563Ao8rUpYL9p2RWWwpJsLqf0Qt8iHTrWrCENSboIy3rD7fg?= =?iso-8859-1?Q?r+cPbkTWGuBWxy3//Lh0aAgW8jihzk7qdYclk8Kuy3zBpVNm4o03HPvZVp?= =?iso-8859-1?Q?bCNMFvm01F5O4YVFGNVQ6Fau/DWeBl4FyBETb6VxY3yzZ0c1JNX2h5xjb7?= =?iso-8859-1?Q?zy96Dt/qCTdD2Ynm5lo/nyIVu+NtkQp+VYnK9OjOjKe23vOWuT5bJYB2Op?= =?iso-8859-1?Q?qMxCAPP1A0ZpVcmNlCLGkvudwsWRnKH1fzoOPUM/XlKwO+G0tBexagk0oB?= =?iso-8859-1?Q?MtsNIqGGjrcGkLFd95x87+1lRxMxitLyRH7Rb33+s0MqUNn9LMxElcMje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ZXheZ4gTmZHG6MZyHM?= =?iso-8859-1?Q?9JpRt3DE7H4X+OBN6id8flAW+LZosybjLWExR5twgRU0vL4BmtL68XnUG4?= =?iso-8859-1?Q?eIQhq7Vrzcan1eI0EC7TcH7gTF0hsSJHFysyRMFK7ksxq4Ou0BGJIG3Cj8?= =?iso-8859-1?Q?vL4TvIyEnk0c3Lm8NvnDIfF1AZS1qd1XwZoSv4IqfgmIju6m/DkCbp0/7w?= =?iso-8859-1?Q?p6gzofJ6hqWUcntih3xC/XCIE/5neDMHK6DsJMdOLd9eYXJz4WW76bS9e4?= =?iso-8859-1?Q?2nHijLRyu1hdWj2o2Ul8ptS8JIVB6q/Uc6Iccs7h/pkyL2gwS9wlu+ig?= =?iso-8859-1?Q?=3D=3D?= Content-Transfer-Encoding: quoted-printable 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 X-ZohoMail-DKIM: pass (identity @epam.com) X-ZM-MESSAGEID: 1732844986554019100 Content-Type: text/plain; charset="utf-8" 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 ou= tside 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) --=20 2.47.0 From nobody Thu Dec 26 14:17:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=epam.com); dmarc=pass(p=quarantine dis=none) header.from=epam.com ARC-Seal: i=2; a=rsa-sha256; t=1732844981; cv=pass; d=zohomail.com; s=zohoarc; b=gIMA9mDhLLt7E8TOzCvsjuR7wQ9PkQtalbfFdHLL5HPCO/r8EKV8vs8EA/lDs3J17WZ+AH5hTr4jrKcDurcqUnzb4r+IGMkY20vTLsJdSpX7Wu4lzT7sRqW47kXZ1t4fcdMA/hzweoh2uuJ8UC1bEBl8sKa334QRVE7ZQ2a06Ic= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1732844981; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=XCMS+YbSfAwyp6W6fe7rYKq/L/tFgk9e9zJ/1i+/t64=; b=Y0Eizd2JtUiUghujVZXQs+/tNXKSXqpyjrmRgeR5ZAjQ+oBngH4GaurkQeiyMIbn73swWLjPXJhNTHtrQIW96LW5STaBBQQFhMpVMqs+NQzrEnKwtUiCObQMThS8VY3qSDRd8T6/bp6zxnMZJiBbp6JAM+DRQM9ZOPY8qq+IZWQ= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=epam.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1732844981238342.64113323856725; Thu, 28 Nov 2024 17:49:41 -0800 (PST) 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 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-Outflank-Mailman: Message body and most headers restored to incoming version 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/iYnuK2zEVDerSUR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Q?RfQXU2pnzdq4X1iKjwFfCRBjUmIRWQ1C4x0mEG8KwJjBjkyJPEAtBOneex?= =?iso-8859-1?Q?lajAzkHbuKuuqYSpd8lycTI29I2U8OY2j0P7E2/scDnzVXA+dbGgbUI91/?= =?iso-8859-1?Q?FTb06M+1JNtdEMbKZdF52XL0LqpS6hq/gCdKRZIyVHFs/llhxTAYlEdBEx?= =?iso-8859-1?Q?0t8BSNqx9V+8f1Cj6eW8KKZmKqDXFKnQ2ubBCYLkS8M2mqpDbJm8NrGOZT?= =?iso-8859-1?Q?ciNqx+JCcRQx/1yL+7bmdG7DsDDu9KHAfpHELvfZK5vE4ygMHLYeNG5XSH?= =?iso-8859-1?Q?pC9T+nMBSDYpJ0GfG2io+tOvtR8Po20Rx2cDpIRIyGnZlesNy43Ty6R9zA?= =?iso-8859-1?Q?X28TmPel63Iw9xbXCFT9/qlm+FXmzS+uDVI/rKSbWKwrGeciETvyEUZQZi?= =?iso-8859-1?Q?67ooK0hNNqLgEGfY32+3Prbds/rwnVBElXywbB06ZnTkXd6BvQvsdBlSEd?= =?iso-8859-1?Q?oeK1nNEyg8uL+1zMqcPEzcbYCUEb9GOMFiUR1g4sI2gufkKljQRJErZkiZ?= =?iso-8859-1?Q?JYpJBHqUqD7RhBMtDNO/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?n88Tru2V4uwLK5QwMASGGCed10iS+S+idx8EWtMd97IhZPaz1LlLumdHPv?= =?iso-8859-1?Q?qaF35ds/XpxMd16aNczAGOjrDtspMQAcyIxyi0sXgs8RMZKP4O/f7eUhLg?= =?iso-8859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mXn?= =?iso-8859-1?Q?mip70zg+wCxEHeI4G6T8E5XFBDo6lBbhmI31rscMPIwHodRC9kMgKobPOL?= =?iso-8859-1?Q?Eqp2Wpxp2K3nCQyGqUETsWyKctlOAdG981yp4T7GIqTAhf5z8iJkc14iPt?= =?iso-8859-1?Q?zIHs+R+s3nxSJvO//mVnBtTMjb4EKkBpWtRgAal/iGg3GAH4Bnq3/GJTS+?= =?iso-8859-1?Q?c+SSBmPyZl6GTtGo74ptZse/LGYr3b21jANdzN6hY5JqB1rTiv+hTh2v4K?= =?iso-8859-1?Q?0/sUYb/7twvjq7KXdvdTwqLZFnGfjxpV4JVzYC3cEO93mY4EaQorcYWgno?= =?iso-8859-1?Q?Noij0edIEQfd/maADhhFWwbnYCKy4BSWKkl3MFKOuuCm3rhCsV/hHsY7vQ?= =?iso-8859-1?Q?ipX9OT48Q5I1sTG8cCw5ympuZDkbDx/h6uMIxHQdef/KKRnYrLM2GNe9EG?= =?iso-8859-1?Q?E0PkYcurzXo0a3CwcBtvDAzrC1TurBIhYg6N7SeS8VMEEi8TffYFQmacvV?= =?iso-8859-1?Q?Mf+mj4Udw3EtMQ1s5pkUh23SPhaERv4rmafjNnKIASzI4GL7mtjwZnJwgl?= =?iso-8859-1?Q?eIuC45KNiaMDJN4hZjCw7tZRmteT1y/QEi7kv15mGArHQgJHVq/2be9fYE?= =?iso-8859-1?Q?o1TMSCjvIFGF82onbqv4JaESLKdXlv+a48ndAHYiVE3XutvKJczMjkKw?= =?iso-8859-1?Q?=3D=3D?= Content-Transfer-Encoding: quoted-printable 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 X-ZohoMail-DKIM: pass (identity @epam.com) X-ZM-MESSAGEID: 1732844982575019100 Content-Type: text/plain; charset="utf-8" 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 ?=3D git + +INSTALL =3D install +INSTALL_DIR =3D $(INSTALL) -d -m0755 -p +INSTALL_DATA =3D $(INSTALL) -m0644 -p +INSTALL_PROG =3D $(INSTALL) -m0755 -p + +BOOT_DIR ?=3D /boot +DEBUG_DIR ?=3D /usr/lib/debug + +SOCKET_LIBS =3D +UTIL_LIBS =3D -lutil + +SONAME_LDFLAG =3D -soname +SHLIB_LDFLAGS =3D -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 =20 SYSCONFIG_DIR =3D $(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 =3D $(CROSS_COMPILE)objcopy OBJDUMP =3D $(CROSS_COMPILE)objdump SIZEUTIL =3D $(CROSS_COMPILE)size =20 -# Allow git to be wrappered in the environment -GIT ?=3D git - -INSTALL =3D install -INSTALL_DIR =3D $(INSTALL) -d -m0755 -p -INSTALL_DATA =3D $(INSTALL) -m0644 -p -INSTALL_PROG =3D $(INSTALL) -m0755 -p - -BOOT_DIR ?=3D /boot -DEBUG_DIR ?=3D /usr/lib/debug - -SOCKET_LIBS =3D -UTIL_LIBS =3D -lutil - -SONAME_LDFLAG =3D -soname -SHLIB_LDFLAGS =3D -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 =3D llvm-as +LD =3D ld.lld +CC =3D clang +CXX =3D clang++ +LD_LTO =3D llvm-lto +CPP =3D $(CC) -E +ADDR2LINE =3D llvm-addr2line +AR =3D llvm-ar +RANLIB =3D llvm-ranlib +NM =3D llvm-nm +STRIP =3D llvm-strip +OBJCOPY =3D llvm-objcopy +OBJDUMP =3D llvm-objdump +SIZEUTIL =3D llvm-size + +include $(XEN_ROOT)/config/GNUCommon.mk + --=20 2.47.0 From nobody Thu Dec 26 14:17:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=epam.com); dmarc=pass(p=quarantine dis=none) header.from=epam.com ARC-Seal: i=2; a=rsa-sha256; t=1732844981; cv=pass; d=zohomail.com; s=zohoarc; b=mhRb6z7KRQvkeJPtk2kKPnONi0pZz08w4uSqf8mDFSwkdp9iXC5cTzl4R4APIm4NBPOOicPoXObkR4Ipw5O+YRJ4TMtY5QF7q2SJG/mwFYwnvQJfFeFQLh8/taNs1z/rs+K7LpCcK8rfmKqaIhAxoEIdmhnL987FjFM5GxSLTV0= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1732844981; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=kqih6yfoliSqu4Tbh2SQlCEAACi38qPHAM/1ieOhAjg=; b=CisPtE+FuDcE/cY/qBXE1dCOy1Tg7FqoURTzyXHZI+pE/fmbbldwWB5DOoufLCqKlVDjGWpKMeLnbmo6Dn8+ynLg9das3BguOcTr9O/GV1RT9figTAPZR0ZX8FFuGoplsTzcreZY5QeCAUZvalMVyjWDb7jzeYtEojC4Rn0Q2Vo= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=epam.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1732844981073606.9376225867145; Thu, 28 Nov 2024 17:49:41 -0800 (PST) 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 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-Outflank-Mailman: Message body and most headers restored to incoming version 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+JHn8r5zKO93IaroKqugUrcxwS6ITT957PNa?= =?iso-8859-1?Q?c4zbhVMKGL6pfzpddxDWShdmdvH/TCdfAAOXdtkiq4E6SNDGSQEAjQ/QX8?= =?iso-8859-1?Q?gi1uTuO4ww/4bKm4CdLPe9WMX0LdMwtIc3PRpm0iYMND7VieEhvTc0LyQd?= =?iso-8859-1?Q?Z1nq3C/qCC7A/SGtRRoiL3XAJXCfIaVI9UWkT4aosB96iSt2k9TbQ4uZZa?= =?iso-8859-1?Q?vIhK/jfi60mQvK50KfvnZ2ewxC0aotvAGDR6BN+tIlmyusB9MXzN4onso2?= =?iso-8859-1?Q?EEPtJmBUfYbczafz9cJdKG0//HFFRQIYTE4IW7REpD9Vp47aOUqO7DQ6Vh?= =?iso-8859-1?Q?QfWRvCl7Xumn0jJ0FEyFDPwOG6jesxt2Qe1FfELlBn9LI4WcVQjBvNDmbm?= =?iso-8859-1?Q?9pIuxSJOrBYz+qQ9S+ckRWUhn+zXNN6pZ5+qJyXdRJcP8uEqyfr5hfgxek?= =?iso-8859-1?Q?78YcjGdLwYhQxkMX6kP84sbJLpSQsCSfwFQ1nch2W3Abk85JNM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xzVBPQN0qnP7i2Kl82uoSqAtf6eItX8fNoLw2jpuHsnFfFSK?= =?iso-8859-1?Q?/Dk11h+6lnbLuxaDoqkUE06ITiRGAUOTsz28cQ=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/D1vvq5tR6nMBcswr7bHft881XqevqH5IsvexwoyJ01EvAVhwOO?= =?iso-8859-1?Q?eU7+J/gAYtNTqHRpgS+kektFjchUCXWyXymJlLIVc0PX3jjJKcYAKOzuFX?= =?iso-8859-1?Q?9T+5unoH/DWchiUvbTJqN4mdzjEI37faUruxL45ZgCgyjPbwcmw0jrVcce?= =?iso-8859-1?Q?6hxqXsE8ao0vAzLo+v8il7e30hEWkxhm7IPioNAOL9ZRtV0nlfO1Ak+uRO?= =?iso-8859-1?Q?bTK9VOmP8yPgQL703Mob7YWs8pyXxn2nBlCx+v5vgY69/APXprvHpfYdPy?= =?iso-8859-1?Q?PC30oWog6747yTicNBB89fWbCD1DxpqwFkf5FzfqAYCZ3O25a3opEsEib8?= =?iso-8859-1?Q?eqzgMJbaDD8lRK9Pikh8BKHxT6dvPKEBiDvxo5NDmPz8tfOsJJZ/Anfbon?= =?iso-8859-1?Q?yF0U0oa9z7ZDVpjZnfaE//zsK+y1Uvbk6e1kU6oyLEOXpBOvrGeBDPp6EZ?= =?iso-8859-1?Q?wLdWPli6Q41St1qoTm1/VFHTDTXN87v0puBxGok8U9E4kz9rJlgaJeWT3i?= =?iso-8859-1?Q?/CP4zm/npS2lCo/2Nhe/VPeg3Gq/R0OLijJST/SwTfkj+/8BbM6KikDSJN?= =?iso-8859-1?Q?NaIrD5kgE8lec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8859-1?Q?rUrn0Qb3cQ1kvDEsIbr0WOa0zNeQYKGBhMxDeh8/oZl3fX32QUtVbZfmlX?= =?iso-8859-1?Q?0dvtdYZKsaOO3tXHGxVg16YzLXwWJElI2S4SuAyzxMULAFaYkM+bK1g2m7?= =?iso-8859-1?Q?XFdEKf6cRBS/68qmQEIPKVWCEJmtTikXLukSZ2zKKt1ZT0W1brIwVfCw?= =?iso-8859-1?Q?=3D=3D?= Content-Transfer-Encoding: quoted-printable 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 X-ZohoMail-DKIM: pass (identity @epam.com) X-ZM-MESSAGEID: 1732844982529019100 Content-Type: text/plain; charset="utf-8" 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=3Darm64 clang=3Dy llvm=3Dy 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 :=3D =20 CFLAGS +=3D #-marm -march=3D -mcpu=3D etc =20 +ifeq ($(clang),y) +CFLAGS +=3D -target aarch64 -march=3Darmv8-a +endif + # Use only if calling $(LD) directly. LDFLAGS_DIRECT +=3D -EL =20 --=20 2.47.0 From nobody Thu Dec 26 14:17:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=epam.com); dmarc=pass(p=quarantine dis=none) header.from=epam.com ARC-Seal: i=2; a=rsa-sha256; t=1732844984; cv=pass; d=zohomail.com; s=zohoarc; b=LrJhYk50NxpR4PBIj78g6HBKOHBAqQ+GaPs/sb7L+e8a7ZtUrIoPhbstgWCXsiZwYS6YIhi1SXamy7nsZ5YPfu9pvzEu4BB88xDreQhBKWCOxAd0lm/1JgQkIVHMFjklBe2BkyU0ZHbmpHMWvr6PUrgFTfY/n30W9bUiK2YDD6I= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1732844984; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=cT9VoTsV8c2mDTKSh8O3lk/cPOowmpDe2ws18KxovqM=; b=WFeBCsVe6IdJSSsXSjRA+9imSmP6/HqwlkeH+YpCdZWkgYEqYPgqjOKxNNuX+1vqPcZ8tms/cynh+/D8mBRYK/vIHBsZ5hm/c06yA5JwT5XtILGvk1NVeEhTsWKVjedKgvEymyUBdNEx3oxdG9VHPwY5hQsSRWZzPxpnAmYrnDg= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=epam.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1732844984766498.1406376469189; Thu, 28 Nov 2024 17:49:44 -0800 (PST) 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 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-Outflank-Mailman: Message body and most headers restored to incoming version 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?+1o7mVMWwdo0HqOI04ZnVzfWtTpaugxIdzWButim8uRV4OpefkHesv61dA?= =?iso-8859-1?Q?GtetkXoe2aUJ/UwDgjTlBs+cIGRKN7/rXJeekZc6f7t0thbEFaiIKydWFh?= =?iso-8859-1?Q?kwJWCWz+sANgSqdtnfyN7YWebf7SFdPc8AJTMEtjqmIqP4XgwlVVD1rzD/?= =?iso-8859-1?Q?gvbPmZtSEg1jjMfGhyw6BClTuvGUAryY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K2UU+gmgI/wlbK9IFL7CWjJGQ8OMMT7YTcbXeoeFhI3IjaLuiaA61j2?= =?iso-8859-1?Q?juVK8Xbk7sJiZTZPxayegaSpEMiAaoCtOlLEcjlibEVD/t8niSQITOGk6/?= =?iso-8859-1?Q?WsagCvBcGs+KzaoStIbN9V1VnHbPgW07fS4AdIO+2SkiYOnh8HyTBWRcj5?= =?iso-8859-1?Q?U78Ah1Oikp2wDTtq7KYzWlfsQgX+fIfkzzWW2f4CZj+9oB9e1sXNRe+3ZF?= =?iso-8859-1?Q?V32ow+NvGwzYwFklA6OBRwzw40XzsU/erxsQhpk4uWXGV41nbm5bKaeAHS?= =?iso-8859-1?Q?/yL8tKGzmgCtwj4fHTX9jiaO6FDL0E9iNNsILTMUsWHzMfEtffmEVP0CaG?= =?iso-8859-1?Q?PfozcEfJl4ErH6uP/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?o8RwojEdQzIjXEEdFcJkjiqWqurHhXjR73BW0o4HfkiDMNczDjtzhCcuTM?= =?iso-8859-1?Q?YS+28eagkDHn1zJ5ld4bYjwyatZp8LkqWVW4qP5xW/h5xVMxXDu17pT03M?= =?iso-8859-1?Q?Ik8WiX2E73GqkkX3K0eWGhFTDijdoF3Vjp7miAjVHfSpNr91u2ff/ODmtq?= =?iso-8859-1?Q?T5hsP3pCq9CX6STHghzH2lN9w5eN4WofFP0usDH76fjCxYvh+PmOrfBPgG?= =?iso-8859-1?Q?r1towqZ65WdrmDXO1KWC1fIYJsj6+eq1mxy74jIH5uMON6p8p9FN6Jt8bP?= =?iso-8859-1?Q?SPt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OIFCnJdKzsmsbjrZql+Dmi?= =?iso-8859-1?Q?lztr18s/k+2o87yThz7WLjlDwHdlrLoVdvxT6DwjHh7ha7kKYNKqNJlDV2?= =?iso-8859-1?Q?T9Njl8H+Jtdux+IOCAC1DrLpXoYYoRpjc/dQfa+B5Fb6OJgHFwJHGySzI6?= =?iso-8859-1?Q?aL5A4ylOXGfE8e+pbkSF64yDdNJJm5sXGSi6QRQO1kc/FBGk1UeSnAMq0r?= =?iso-8859-1?Q?M2DOuK28LbtjyfcGTZ4UVS3oIpvKepYVvlx8PHoDv4e2zGdc10hiNiu2nL?= =?iso-8859-1?Q?xUtiESmHSZt74WpUlrD4FeIDyXWX79yAxKlrHQLE4hlkwSW0eNwzNnUmY9?= =?iso-8859-1?Q?O1pjLnz6XpjYNxKmJp7+G/nbjBl/rQqXlXL5q6ZSqopviCRUvhXwpl2GDO?= =?iso-8859-1?Q?vFoI4C+klLl1lpCb9spEfAQrVHMsTNyldcZxnsMoAO6heWwI2D5F8qARdc?= =?iso-8859-1?Q?3UAkXBesPQE1WrIgtUGmaopq4NcDV/v/jfUaDllUakVFkjdQY5kV9IiA?= =?iso-8859-1?Q?=3D=3D?= Content-Transfer-Encoding: quoted-printable 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 X-ZohoMail-DKIM: pass (identity @epam.com) X-ZM-MESSAGEID: 1732844986556019100 Content-Type: text/plain; charset="utf-8" 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 =3D $(filter-out -Wa$(comma)% -flto,$(1)) # Calculation of flags, first the generic flags, then the arch specific fl= ags, # and last the flags modified for a target or a directory. =20 -c_flags =3D -MMD -MP -MF $(depfile) $(XEN_CFLAGS) +c_flags =3D -MMD -MP -MF $(depfile) $(filter-out $(CFLAGS_REMOVE),$(XEN_CF= LAGS)) a_flags =3D -MMD -MP -MF $(depfile) $(XEN_AFLAGS) =20 include $(srctree)/arch/$(SRCARCH)/Rules.mk --=20 2.47.0 From nobody Thu Dec 26 14:17:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=epam.com); dmarc=pass(p=quarantine dis=none) header.from=epam.com ARC-Seal: i=2; a=rsa-sha256; t=1732844987; cv=pass; d=zohomail.com; s=zohoarc; b=MaGgSTxR1e9daL2YwPvGAunyoA6zrQ4//nZ790XqHgGzHAjzwlwbulF5TTh65r1tIPHqSQMFuTxRHGSyauoB1ELQ2ntfufEBElo/v9ctFHbv8aBTfGYKu2dRNVhAinEn+g+uGz79WIlj2470OYeVuNtxCXeRyKfjBI79LFv9XTE= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1732844987; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=zPCV0KRt10rVJH/0K9SWhiiyCsf6ZgnkvvhOIytXR7E=; b=ILwzaKgWQ0/TCmnRatxIPjduBrbk8I2OB1IHOabtlxShX3UN6GFp3sKYF5gLoBGWh/623YVeyMjrFXE8P69ar018F3/ZvzUGhW3VbyCiDChmcCAE/0XAi07y0dRuB6BkP8R7lAqQ2ljN7oF/UvZOC7NFiJMb5hAG40Xwhrlv88s= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=epam.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1732844987071498.4921170075406; Thu, 28 Nov 2024 17:49:47 -0800 (PST) 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 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-Outflank-Mailman: Message body and most headers restored to incoming version 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?oSKJ4V0XfCqexXOFqRrCYyCNTJU9YxCWuIZPzBefNSE2ir3DFuH/FsMtiZ?= =?iso-8859-1?Q?ktV6eOg8pK75uJVFfqsKWfVP4nvwTQqC79XYzAB+VbUPQPi3PjTml/H/C7?= =?iso-8859-1?Q?cgzD2+DxbmlX8osg3qQoG83UE/658wdvRmxf/Sq4Ep6OIBKO/rs1AO2WNL?= =?iso-8859-1?Q?PqMXnOg67aJPMn+E4hQsBfprNpQbJ4YZ/no9qHOmwiSUXzBLqOY6NQiq2B?= =?iso-8859-1?Q?szwZB1VujP+tXf2FC7cRSBQtRRzUFnqyKUMA6VND9+fJrQhl1vygQGLrxN?= =?iso-8859-1?Q?nlOilnleUhn/H1S9ALdn9eMgPKp0dF9jmw/87WYVb4kHS5RCTBQjM59Dwx?= =?iso-8859-1?Q?GYH/ZkFaBUyTJEL37xd7eOl/3dvJV6MRrhWxzz/ChpteFFswXIIGtrtg5F?= =?iso-8859-1?Q?jW6UdQ/aZFpzJu6elJKeHGpPzthuaMZQ3+Hit4bzzBGxIzW2cOASUP218b?= =?iso-8859-1?Q?/z2ctTWFbUc0rtADjPtP6v2enptiWBx523wgqHCThimsdwJx0TrOXV9mfd?= =?iso-8859-1?Q?Svms5cRJyyXRJBT8izQ8MD6q5hAEr5UTACg7qWEU5UIIE2L9xzbKWcNFD7?= =?iso-8859-1?Q?YWbl8G8SnwKy9TkUJ+hDw5TJ9B+OdKYjbOdmjjV1NCfJO5FEZZPZKGFrjt?= =?iso-8859-1?Q?rIO9NP+MyEgK0GLByn3GmnSIw43owtVboqD6Ho+ImIQgAnPWEeVq5loOC1?= =?iso-8859-1?Q?WI1VVClPXSMLBIh2LYdTgjBPW91EVVJ2nCJ1+L+SdBcjbmdeG52Z/U/sxI?= =?iso-8859-1?Q?HTKfKTBifrWVYarJ3++aV8pcLLi/3N/IhWb+52At/ZAokK0YQEeoCHZG0h?= =?iso-8859-1?Q?QH7EUfwgNSwyZSvaLrOa29L6e0y/T+kwIR7vmtBIsMjJcYNG4xE8vZsM5v?= =?iso-8859-1?Q?q8aiBSVy9+2PO5oNxJ0a4meFMf4+3Pp2jKlbs5ppwFKWkEOKjlUI8aoPXK?= =?iso-8859-1?Q?+HWh2b6gd/xa0a/yXdzJ/mGS37OeVwbkqP7UX+rbg7HybYpOMwOQ3AOQDU?= =?iso-8859-1?Q?ulZFyEgk4AHSBejDYKK7AcOecj/8SwPIvGb3e33uBUSF4wBVNwKDE932Vj?= =?iso-8859-1?Q?M8woKUSaEReyhysQRvesNuwIfqzzgZNv9Bp1SW6beWRG8YmOcgZkOnEj80?= =?iso-8859-1?Q?7xUBBoxuKaraJ8V+S1rRjuVd/ZGSXlp7575VEk6JGIhSrKUNF7rkrW4E2T?= =?iso-8859-1?Q?wxTGv/dTEgkvniFMRsdWZRUMUynfRUUMOC8IL90lrFaSKff0Riw6QdXZLA?= =?iso-8859-1?Q?1CpG3YQooPVxAvE345tGO6+ERcZ7uRV5FVBKQnGjwDltxkesd+5AMfPXoi?= =?iso-8859-1?Q?pQYhulEfh9G+eRZ1ekRnl3AWVZWcmTBH5wW4fEjF4KrsQW6oAs/CCZuIMA?= =?iso-8859-1?Q?RnCSWWnxA1WFqibfqic/r7DWOxyCA3/KTNuwMMIEU45hK+MHsRlWGPrJG8?= =?iso-8859-1?Q?jIbrwOc7uuLHdX1XTRMwMl3Q5w+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/R0wsNOPw7ta9AWl/CBZazr9y+ivnOvWD1IoGZ?= =?iso-8859-1?Q?SO8rPm8JF2jRKhBtfbE/DtJFpS4nW/b6TjKiH/kwuN2IqSnuUCqS/XNmfQ?= =?iso-8859-1?Q?Vzgpn9T9eZFzZfWrc709dxMpuCvN3eImoLUKiUuFmxo8BQgSiYJc5oEfT8?= =?iso-8859-1?Q?cSRCzK5YqUcZhG6ZEMS74963NQjZzzwUMiYza1oACL6u2+scNyTmYVC6NM?= =?iso-8859-1?Q?xC+b3EZCazusYQJfYS9FzP4QJTs3RPawm4HZNvD55pVZYc+1/7D3rEsd3j?= =?iso-8859-1?Q?msxEjT1Z7WH/2K8LyZoVeIlTqoVf+2cOZTygTe7UNPBLVTurmqZYN+s5xC?= =?iso-8859-1?Q?Oy6t3AG53UoDzTNXgHZxSA7v0mvXihvJsw0sUerzo44/aSwpUPNgkBUPbM?= =?iso-8859-1?Q?ImzLeQy91R1DUIvuKkk/hOhPuN3f35JpapTqcKF9Tvaq9KQ70xWnvHjRFs?= =?iso-8859-1?Q?ke9droR+Iqq0RI4X0QH8uOVloraLAN0Q13yCh0fwg3rz7foDvDoc03EwJd?= =?iso-8859-1?Q?LZJAEeQHUQ6AnbNNN2+PMdv4veaiCJXpVMdnzwtGCQ+73DVxVpNc7oU2S4?= =?iso-8859-1?Q?XQmiVCRpVQMXWgD9Ys+e+40F+En7ifoJPkTJ7Dq8B/nV4xExoyuOl1Sq/Q?= =?iso-8859-1?Q?k6DRHOEKFvoMPuQZfFNQrg2zKtfeu9LdhwlfXQzgRV99RWGJcDRE+6kBqx?= =?iso-8859-1?Q?Sg++AdrlGuPw6VRrCKNAoeVLgnU4RKR7N4g4dpkDonBe6BrMO9NzXT8s2Q?= =?iso-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MxQ7G0UXeZFBIg24Qoy761wtkWzZNa8I5mIzg?= =?iso-8859-1?Q?=3D=3D?= Content-Transfer-Encoding: quoted-printable 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 X-ZohoMail-DKIM: pass (identity @epam.com) X-ZM-MESSAGEID: 1732844988491019100 Content-Type: text/plain; charset="utf-8" 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) +=3D sve.o sve-asm.o obj-y +=3D traps.o obj-y +=3D vfp.o obj-y +=3D vsysreg.o + +$(obj)/vfp.o: CFLAGS_REMOVE +=3D -mgeneral-regs-only --=20 2.47.0