From nobody Wed Feb 5 12:54:54 2025 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; 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; dmarc=fail(p=none dis=none) header.from=invisiblethingslab.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1736428568929926.8907285175998; Thu, 9 Jan 2025 05:16:08 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.868359.1279876 (Exim 4.92) (envelope-from ) id 1tVsNp-0002V7-L9; Thu, 09 Jan 2025 13:15:33 +0000 Received: by outflank-mailman (output) from mailman id 868359.1279876; Thu, 09 Jan 2025 13:15:33 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tVsNp-0002V0-Id; Thu, 09 Jan 2025 13:15:33 +0000 Received: by outflank-mailman (input) for mailman id 868359; Thu, 09 Jan 2025 13:15:32 +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 1tVsNo-0002Uu-B2 for xen-devel@lists.xenproject.org; Thu, 09 Jan 2025 13:15:32 +0000 Received: from fout-a4-smtp.messagingengine.com (fout-a4-smtp.messagingengine.com [103.168.172.147]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id cc176354-ce8b-11ef-a0df-8be0dac302b0; Thu, 09 Jan 2025 14:15:30 +0100 (CET) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id C089313803AD; Thu, 9 Jan 2025 08:15:28 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Thu, 09 Jan 2025 08:15:28 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Jan 2025 08:15:27 -0500 (EST) 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: cc176354-ce8b-11ef-a0df-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1736428528; x=1736514928; bh=m2abBxRo9SxXbM+8hKw6HSWO7tQK6uGC f+3A+K3+Z/w=; b=qpIny3qBOTky6gnYuyXNGQSpVicu6rXc1uqTzZ2ghg09WLXe SnXiZoYh5I1/ILNuR/4MD+2oyYvIFNVNhrZMOVRz18FGnNP18bT9UG7LmXJyr3wW jVHpQpMUktP8Hhk96l4qBoq0TBDwJBaOKQdtGLChaPapGBHQUMJQsHNsSinrJN/Y 48WdrrI6lAtmzIufohr6mRbSCAqcjijHrd1V+TFmXlDa82Wc394h6yoDcFO+yiFZ h3fZI9kvXnNiAZoQoWoGNH2UnCeKwRZWu7hCTrZ6QTnt0VrmOQBKHdvfstDRck8z ua0N6qvODYB12+HtR9CIZu0WmLFDayGd5VKK9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1736428528; x=1736514928; bh=m2abBxRo9SxXbM+8hKw6HSWO7tQK 6uGCf+3A+K3+Z/w=; b=n7W22jrHcplfqZIHK4BXpBGI232DM49ZVj8qWxe2Z6Yp 9fHmGzUWDeh0AQIwovHQaGH5sFuv2eJi35mzUecO0jZi7CYTvj9vB5gA6tt7thcO oW0zlcydrFrWvFnW4+wffxGnlTvdkYeAIJNe0+mkkPmWdgaokGPS5ylm2cN10PWx /NzRkLogsGVCuR2y+R7hE5oHNg3BaABy6XRe+sTsyo7IQYESQFLB2TDUuQMFDyIU 8K3T86ZTltDiD9MzylHxaN7Af3B/G+MeQzUbmY17QAVdbRHClYhajuKsJNaJRH4Q YdY8/QA0jg4jpmmcj4yIYaA6VfTw/IKHQARNw6EyjA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudegiedggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefufffkofggtgfgsehtkeertdertdejnecu hfhrohhmpeforghrvghkucforghrtgiihihkohifshhkihdqifpkrhgvtghkihcuoehmrg hrmhgrrhgvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtohhmqeenucggtffr rghtthgvrhhnpedtjeehieevhfettdefudefgfegteejkeffueegudekieeftddvudfggf dugfekgfenucffohhmrghinhepsggrshgvrdhlughspdhofhhfshgvthdrlhgushenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghrmhgrrh gvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtohhmpdhnsggprhgtphhtthho peeipdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeigvghnqdguvghvvghlsehlih hsthhsrdigvghnphhrohhjvggtthdrohhrghdprhgtphhtthhopehmrghrmhgrrhgvkhes ihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtohhmpdhrtghpthhtohepfhhrvgguih grnhhordiiihhglhhiohestghlohhuugdrtghomhdprhgtphhtthhopehjsggvuhhlihgt hhesshhushgvrdgtohhmpdhrtghpthhtoheprghnughrvgifrdgtohhophgvrhefsegtih htrhhigidrtghomhdprhgtphhtthhopehrohhgvghrrdhprghusegtihhtrhhigidrtgho mh X-ME-Proxy: Feedback-ID: i1568416f:Fastmail From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= To: xen-devel@lists.xenproject.org Cc: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= , Frediano Ziglio , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH] x86/boot: adjust text gap/diff to work with 64-bytes alignment too Date: Thu, 9 Jan 2025 14:15:06 +0100 Message-ID: <20250109131515.1757764-1-marmarek@invisiblethingslab.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1736428570286116600 Xen compiled with -mtune=3Dgeneric has .text alignment set to 64-bytes. Having text_diff non-64-bytes-aligned breaks stuff: Traceback (most recent call last): File "/builddir/build/BUILD/xen-4.20.0-build/xen-4.20.0-rc0/xen/./too= ls/combine_two_binaries.py", line 96, in raise Exception('File sizes do not match') Exception: File sizes do not match: 70160 !=3D 4080 + 66048 Adjust the numbers as suggested by Frediano to work with 64-bytes and even 128-bytes alignment. Suggested-by: Frediano Ziglio Signed-off-by: Marek Marczykowski-G=C3=B3recki --- xen/arch/x86/boot/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/boot/Makefile b/xen/arch/x86/boot/Makefile index d45787665907..80c32163fbbd 100644 --- a/xen/arch/x86/boot/Makefile +++ b/xen/arch/x86/boot/Makefile @@ -40,8 +40,8 @@ LD32 :=3D $(LD) $(subst x86_64,i386,$(LDFLAGS_DIRECT)) # are affected by both text_diff and text_gap. Ensure the sum of gap and = diff # is greater than 2^16 so that any 16bit relocations if present in the obj= ect # file turns into a build-time error. -text_gap :=3D 0x010200 -text_diff :=3D 0x408020 +text_gap :=3D 0x010240 +text_diff :=3D 0x608040 =20 $(obj)/build32.base.lds: AFLAGS-y +=3D -DGAP=3D$(text_gap) -DTEXT_DIFF=3D$= (text_diff) $(obj)/build32.offset.lds: AFLAGS-y +=3D -DGAP=3D$(text_gap) -DTEXT_DIFF= =3D$(text_diff) -DAPPLY_OFFSET --=20 2.46.0