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)