From patchwork Tue Mar 18 17:01:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Marczykowski-G=C3=B3recki?= X-Patchwork-Id: 14021329 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 E616CC28B2F for ; Tue, 18 Mar 2025 17:05:41 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.919553.1323975 (Exim 4.92) (envelope-from ) id 1tuaNg-0006ge-Ao; Tue, 18 Mar 2025 17:05:32 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 919553.1323975; Tue, 18 Mar 2025 17:05:32 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tuaNg-0006gV-7m; Tue, 18 Mar 2025 17:05:32 +0000 Received: by outflank-mailman (input) for mailman id 919553; Tue, 18 Mar 2025 17:05:31 +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 1tuaNf-0006Qw-0C for xen-devel@lists.xenproject.org; Tue, 18 Mar 2025 17:05:31 +0000 Received: from fhigh-b4-smtp.messagingengine.com (fhigh-b4-smtp.messagingengine.com [202.12.124.155]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 31b5fe93-041b-11f0-9abb-95dc52dad729; Tue, 18 Mar 2025 18:05:30 +0100 (CET) Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.stl.internal (Postfix) with ESMTP id D876A25401B1; Tue, 18 Mar 2025 13:05:28 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Tue, 18 Mar 2025 13:05:29 -0400 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 Mar 2025 13:05:26 -0400 (EDT) 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: 31b5fe93-041b-11f0-9abb-95dc52dad729 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 :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1742317528; x=1742403928; bh=2RHWRfuiJA Z+lCbEby7WMUQD0Se/UCEJJv5nwKDm3aU=; b=JlqMQKNrDdqCdAvV0YJPLcAIYg RANOsKmRJTtvhr0MaKzDJOpIupOTr8DioVF6pclVqkrxCUxSyYXhqnOn5b9AzfqL 41o4s9EkgHKrI9gm0nbIByQkWYQws0a0FrJVFkSi4vPnkBXb8y7D+Rvu1mik5kIJ /se7rgHKYz8dOEgaYFltzdT4inK4MnFdRThcjRodSBa5W5cMsaUyJnOxx7RetDfU lb1+k9lgoGOt9L0vyfeH6eMyvScOrXDt1qql5F3JRSuRmFhnbBbzFexGQ4xl/yJL U5rCTvXF/68cU3r5JdeQ3gyTvJY+S2c3kzOZr6hOizUoZqovSlg9+iy6keig== 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:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1742317528; x= 1742403928; bh=2RHWRfuiJAZ+lCbEby7WMUQD0Se/UCEJJv5nwKDm3aU=; b=b x1fz+dahNmiVkmLgDPMk4ZGZ3rtM4nbLO+x2hXwdaeWTrI4+ANdS96tM+898nOzq KCQUjBs/XR2RN5TUNPTt6mCF1yu037rqRn+hT2i0yCGyERC+sMRaWhtgtb4HIbVv abl7N4SVw7s4YL2SCiGIOnJXomkI4oobtA+p/pUiWgm5mbq0SRasf8LAHefvSMRA 0gYwFKqSMWp0VXqtF9/W/KXJGMUstDPD8aVjMViN2mezGaGJ1ix/BEVhOycZzKhF dSPiOHXqKEOFg4pJ5p4cEZcyJ5v8q0ZwfAGZbbYBYDREcqUhDeEPnDy4VpgjZbJA i1tUNyBF+0ltsydLJEMsw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugedvleelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhephffvvefufffkofgjfhggtgfgsehtkeertder tdejnecuhfhrohhmpeforghrvghkucforghrtgiihihkohifshhkihdqifpkrhgvtghkih cuoehmrghrmhgrrhgvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtohhmqeen ucggtffrrghtthgvrhhnpefgueduhefgvdefheehudejheefudevueeghfekhfehleegve duteeuiedugffgffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehmrghrmhgrrhgvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtoh hmpdhnsggprhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep gigvnhdquggvvhgvlheslhhishhtshdrgigvnhhprhhojhgvtghtrdhorhhgpdhrtghpth htohepmhgrrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomhdp rhgtphhtthhopehfrhgvuggvrhhitgdrphhivghrrhgvthesqhhusggvshdqohhsrdhorh hgpdhrtghpthhtoheprghnthhhohhnhidrphgvrhgrrhgusehvrghtvghsrdhtvggthhdp rhgtphhtthhopegrnhgurhgvfidrtghoohhpvghrfeestghithhrihigrdgtohhmpdhrtg hpthhtohepmhhitghhrghlrdhorhiivghlsegrmhgurdgtohhmpdhrtghpthhtohepjhgs vghulhhitghhsehsuhhsvgdrtghomhdprhgtphhtthhopehjuhhlihgvnhesgigvnhdroh hrghdprhgtphhtthhopehrohhgvghrrdhprghusegtihhtrhhigidrtghomh X-ME-Proxy: Feedback-ID: i1568416f:Fastmail From: =?utf-8?q?Marek_Marczykowski-G=C3=B3recki?= To: xen-devel@lists.xenproject.org Cc: =?utf-8?q?Marek_Marczykowski-G=C3=B3recki?= , =?utf-8?q?Fr=C3=A9d=C3=A9ric_Pierret_=28?= =?utf-8?q?fepitre=29?= , Anthony PERARD , Andrew Cooper , Michal Orzel , Jan Beulich , Julien Grall , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini Subject: [PATCH v1 2/2] Strip build path directories in tools, xen and xen/arch/x86 Date: Tue, 18 Mar 2025 18:01:57 +0100 Message-ID: <0370c0eb1fd9ac00acab016792132fa0b943d384.1742317309.git-series.marmarek@invisiblethingslab.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: References: MIME-Version: 1.0 From: Frédéric Pierret (fepitre) Ensure to have a realpath for XEN_ROOT else it fails to substitute properly pathes in strings sections Signed-off-by: Frédéric Pierret (fepitre) [use cc-option-add] Signed-off-by: Marek Marczykowski-Górecki --- tools/Rules.mk | 2 ++ xen/Makefile | 2 ++ xen/arch/x86/Makefile | 1 + 3 files changed, 5 insertions(+) diff --git a/tools/Rules.mk b/tools/Rules.mk index 6bd636709ff7..9ed0336c07d5 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -169,6 +169,8 @@ endif CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs) CFLAGS += $(CFLAGS-y) +$(call cc-option-add CFLAGS,CC,-ffile-prefix-map=$(XEN_ROOT)=.) + CFLAGS += $(EXTRA_CFLAGS_XEN_TOOLS) INSTALL_PYTHON_PROG = \ diff --git a/xen/Makefile b/xen/Makefile index 58fafab33d6f..0d79e259a33e 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -411,6 +411,8 @@ ifneq ($(CONFIG_CC_IS_CLANG),y) CFLAGS += -Wa,--strip-local-absolute endif +$(call cc-option-add CFLAGS,CC,-ffile-prefix-map=$(XEN_ROOT)=.) + AFLAGS += -D__ASSEMBLY__ $(call cc-option-add,AFLAGS,CC,-Wa$$(comma)--noexecstack) diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile index f59c9665fdd0..70d0653257d7 100644 --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -137,6 +137,7 @@ $(TARGET): $(TARGET)-syms $(efi-y) $(obj)/boot/mkelf32 mv $(TMP) $(TARGET) CFLAGS-$(XEN_BUILD_EFI) += -DXEN_BUILD_EFI +$(call cc-option-add CFLAGS-$(XEN_BUILD_EFI),CC,-ffile-prefix-map=$(XEN_ROOT)=.) $(TARGET)-syms: $(objtree)/prelink.o $(obj)/xen.lds $(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds -N $< $(build_id_linker) \