From nobody Fri Dec 27 04:33:16 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