From nobody Thu Dec 18 07:32:47 2025 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6B9B268FDA; Thu, 13 Mar 2025 15:59:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741881569; cv=none; b=AP5yir+OBADxMtXHjd688YgE1vNq8fo4PBI+Uz/doof9ZmHqoksqVKwGcbTVDGKjGTRyXGTfoUPdzQwNxekzhAG5tR9h62hoGAkI538dofaXy2n4eyv19fSf69btmD9WcxApnecHHWLbpsyyRyWDUxADF4qVVFEAvHkCXDqxBzk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741881569; c=relaxed/simple; bh=62zTkdL3ALYfRPzWe/8lphFjkzK4FS/qXrxPsWWWSrA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TzNdgco6SJqHGfeQUzOGE/1gKJePxEY4DTxgrUfvAmoqVbe3AilqbAJQLAH9xSdX2gUQJ2v8S8rSpgbSFpscEo3vELlxp3V+iNKt76fxQ/FQhLXRv8R/6WcU5uloSFrURq6kekC48rj37ahJ5MMuJua9taIMYOGXZuY7QMVwhDs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=lK3Teh3Y; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="lK3Teh3Y" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1741881564; bh=62zTkdL3ALYfRPzWe/8lphFjkzK4FS/qXrxPsWWWSrA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=lK3Teh3YUOjmJFWSy7m5FP7PtmD/xk72BuNPwB/NPIHPW5sNGJTQK2FRSQVHnxAds Abi4Nz6mverESCGS/hz4cVKBzoNuFKh7ljoFR9ZSAW6mHjCnxEwbINk3Xb51rSd+Sj bCPey6dkiDsqBZQ34ryzWFXT+iJCCg/CXlOqjFCI= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 13 Mar 2025 16:59:09 +0100 Subject: [PATCH 1/4] kbuild: make all file references relative to source root Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250313-kbuild-prefix-map-v1-1-38cea8448c5f@weissschuh.net> References: <20250313-kbuild-prefix-map-v1-0-38cea8448c5f@weissschuh.net> In-Reply-To: <20250313-kbuild-prefix-map-v1-0-38cea8448c5f@weissschuh.net> To: Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Ben Hutchings Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1741881563; l=1113; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=62zTkdL3ALYfRPzWe/8lphFjkzK4FS/qXrxPsWWWSrA=; b=nfzE1uQOaMdStFiOzQldd0472aZEEpFNHJCNBKyUu13oZ5lyK9asa2U3CpmCC+DkSD1dv/CQ+ Kp9ZeR1wXQ7C35yDBwoMO2T91+fvoz6Vb1V7uQpG8mNEdeNei+Hqfu5 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= -fmacro-prefix-map only affects __FILE__ and __BASE_FILE__. Other references, for example in debug information, is not affected. This makes handling of file references in the compiler output harder to use and creates problems for reproducible builds. Switch to -ffile-prefix map which affects all references. Suggested-by: Ben Hutchings Link: https://lore.kernel.org/lkml/c49cc967294f9a3a4a34f69b6a8727a6d3959ed8= .camel@decadent.org.uk/ Signed-off-by: Thomas Wei=C3=9Fschuh --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 30242e731a0d19faa0ffbeada8313e77c4105b41..7b1683bb60e2f473b255fb8a0bd= e97b15d19ddb6 100644 --- a/Makefile +++ b/Makefile @@ -1067,7 +1067,7 @@ endif =20 # change __FILE__ to the relative path to the source directory ifdef building_out_of_srctree -KBUILD_CPPFLAGS +=3D $(call cc-option,-fmacro-prefix-map=3D$(srcroot)/=3D) +KBUILD_CPPFLAGS +=3D $(call cc-option,-ffile-prefix-map=3D$(srcroot)/=3D) KBUILD_RUSTFLAGS +=3D --remap-path-prefix=3D$(srcroot)/=3D endif =20 --=20 2.48.1 From nobody Thu Dec 18 07:32:47 2025 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 497012690C8; Thu, 13 Mar 2025 15:59:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741881567; cv=none; b=qbSls9rcrAO3JHUHtrte/y+t6/g/OYIrF+UXY3z7vpsRrp5T5V+BIOsnct11oS/Dw9Of0h5mPmR5y0/8MtdUQT6HT+XMLCjlaJjse0hX5ELO1zviQTueABBrmTu1U8OTFub6dypLfjm+UdwYVzNjJ30lrp/wX4NJdclEIrZKUkc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741881567; c=relaxed/simple; bh=hcDIWJu90D0wxDo/8UZRdUjnWMXcTHK9RvNlL3UfpcQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qbaBDcDauUJtmWyOvLbUoW20k2UsOnZFcqLoFwNMe0F03r3BuDUUtxyLHrZjsdflDLJoxEF9CyWI8UKjMj9M01tYQ75WBiEkH1Rp+5i9/5OMgvb1p4djBD/8PDprEi7hSaIr36p7VS47wnflmG1vT/4+e/Sz3J6gIv4TLP6qA9s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=svQ0+72L; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="svQ0+72L" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1741881564; bh=hcDIWJu90D0wxDo/8UZRdUjnWMXcTHK9RvNlL3UfpcQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=svQ0+72LsD7nqoY33Gm2rOOcsAqDQ+8buJHfB+aEVF3IlHdBT1AhUSfqE6lUCiTSz 5o6mSQiCdeoyeJFsLizeunyuMO6klEggctCNGfF0Tk9eHPuxpBP2T7X4tbwp76lf+r 7o6ZuM4f8KXXKcnm9WjpiDegpbEPV98ql5Uq1u7M= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 13 Mar 2025 16:59:10 +0100 Subject: [PATCH 2/4] kbuild: doc: reproducible-builds: drop section "Absolute filenames" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250313-kbuild-prefix-map-v1-2-38cea8448c5f@weissschuh.net> References: <20250313-kbuild-prefix-map-v1-0-38cea8448c5f@weissschuh.net> In-Reply-To: <20250313-kbuild-prefix-map-v1-0-38cea8448c5f@weissschuh.net> To: Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Ben Hutchings Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1741881563; l=2032; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=hcDIWJu90D0wxDo/8UZRdUjnWMXcTHK9RvNlL3UfpcQ=; b=oGBjvGj5brRztPelNDPQprGY3qhRZoSVO4st+/vJuNf1RzUAgwbZQQHifHGAJOhQAbnCqCVZb CQCNOtnXp9xDItpj8cFDRjMlCJLWblkNdMYWzAqKLJXfQZYZlZn5Jul X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= The top-level Makefile now uses the generic -ffile-prefix-map which also affects debug information, making the manual override superfluous. Drop the now unnecessary section. Signed-off-by: Thomas Wei=C3=9Fschuh --- Documentation/kbuild/reproducible-builds.rst | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Documentation/kbuild/reproducible-builds.rst b/Documentation/k= build/reproducible-builds.rst index f2dcc39044e66ddd165646e0b51ccb0209aca7dd..c815f486926253ffe5daa5e9a9a= b3dbcb142c6fc 100644 --- a/Documentation/kbuild/reproducible-builds.rst +++ b/Documentation/kbuild/reproducible-builds.rst @@ -46,21 +46,6 @@ The kernel embeds the building user and host names in `KBUILD_BUILD_USER and KBUILD_BUILD_HOST`_ variables. If you are building from a git commit, you could use its committer address. =20 -Absolute filenames ------------------- - -When the kernel is built out-of-tree, debug information may include -absolute filenames for the source files. This must be overridden by -including the ``-fdebug-prefix-map`` option in the `KCFLAGS`_ variable. - -Depending on the compiler used, the ``__FILE__`` macro may also expand -to an absolute filename in an out-of-tree build. Kbuild automatically -uses the ``-fmacro-prefix-map`` option to prevent this, if it is -supported. - -The Reproducible Builds web site has more information about these -`prefix-map options`_. - Generated files in source packages ---------------------------------- =20 @@ -132,6 +117,5 @@ See ``scripts/setlocalversion`` for details. .. _KBUILD_BUILD_TIMESTAMP: kbuild.html#kbuild-build-timestamp .. _KBUILD_BUILD_USER and KBUILD_BUILD_HOST: kbuild.html#kbuild-build-user= -kbuild-build-host .. _KCFLAGS: kbuild.html#kcflags -.. _prefix-map options: https://reproducible-builds.org/docs/build-path/ .. _Reproducible Builds project: https://reproducible-builds.org/ .. _SOURCE_DATE_EPOCH: https://reproducible-builds.org/docs/source-date-ep= och/ --=20 2.48.1 From nobody Thu Dec 18 07:32:47 2025 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 084042690E0; Thu, 13 Mar 2025 15:59:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741881568; cv=none; b=N48C99x8SiMadnyxopRh8DTuzIGYV4zOh3AWI9J5FCmPZOGi4q5/MsS0bzbQlTmenkTz3Gf/bBDxjxu0LBqH2N0Eza6Gx0hBOVXc8/IxevxGxspY2iiKCZM8og5378WcJbdVb5SCcqx58KP8fCKQ3sQhQxWewY6CIKJdzOnO08E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741881568; c=relaxed/simple; bh=gyxM7lG01ijM+q9FeI1Qe7my1goYfeHfCY5Or3iKvhc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dbqjXV8FsWPXXoUw2LNsdn871fCAUJGu9QJ7W3x+mDIZ3nIY96PSzcwkd4cKRrvRbNCd3ccvxK9e8f9opDLzD/6JTcLqCevb4M8lx62KIDapQCK9NjCGIXzNZZwZ+Y7G6C/h62QB5ttf4ueBQ6pfdmNScQKKsJeZeM7YPH8wVws= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=XKWp7XEa; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="XKWp7XEa" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1741881564; bh=gyxM7lG01ijM+q9FeI1Qe7my1goYfeHfCY5Or3iKvhc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=XKWp7XEaPNogvM4KJMipTkIfSU/UCx/0aFR+j1H+TgExEvoVexz0+ywB3QZODdQqC G49A2H+IMv5nUXzd4PMQ2NFRsmT3PwYyOpOksviH4JsGlJ4J/vZDAgKsDcZ5VOFK1T X/625tJcB/VgF72DqCVDi3HLK+IQeM3KWliGvPYE= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 13 Mar 2025 16:59:11 +0100 Subject: [PATCH 3/4] x86/boot: Switch to -ffile-prefix-map Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250313-kbuild-prefix-map-v1-3-38cea8448c5f@weissschuh.net> References: <20250313-kbuild-prefix-map-v1-0-38cea8448c5f@weissschuh.net> In-Reply-To: <20250313-kbuild-prefix-map-v1-0-38cea8448c5f@weissschuh.net> To: Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Ben Hutchings Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1741881563; l=905; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=gyxM7lG01ijM+q9FeI1Qe7my1goYfeHfCY5Or3iKvhc=; b=llYdqfj8gYiv8E+Lv9OLrBimDd13l3YWxcunDbm9vsTdDkwpWrWy0B2YgEZuGbQZw/5WFIbMr PLkebp8XuvBDDEpm+weTom9YcIoLu0O3HBtf526tOrpjxMKLUAmvzZz X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= -ffile-prefix-map is a more general variant of the currently used -fmacro-prefix-map. It is also what the top-level Makefile is using now. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Borislav Petkov (AMD) --- arch/x86/boot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile index 9cc0ff6e9067d574488a35573eff4d0f8449e398..f500f82864aae80deb74faa3df9= a8b6333d6c4ca 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile @@ -54,7 +54,7 @@ targets +=3D cpustr.h =20 KBUILD_CFLAGS :=3D $(REALMODE_CFLAGS) -D_SETUP KBUILD_AFLAGS :=3D $(KBUILD_CFLAGS) -D__ASSEMBLY__ -KBUILD_CFLAGS +=3D $(call cc-option,-fmacro-prefix-map=3D$(srctree)/=3D) +KBUILD_CFLAGS +=3D $(call cc-option,-ffile-prefix-map=3D$(srctree)/=3D) KBUILD_CFLAGS +=3D -fno-asynchronous-unwind-tables KBUILD_CFLAGS +=3D $(CONFIG_CC_IMPLICIT_FALLTHROUGH) =20 --=20 2.48.1 From nobody Thu Dec 18 07:32:47 2025 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B6D52690C9; Thu, 13 Mar 2025 15:59:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741881567; cv=none; b=Xoy8iEYz5qt74YaZSeNPTW/fuFXCuDM9CgS5dlugCcg0QrhoYuYeoj4iZur1omgXq+kvllxZgW1wT8x0AzwXoX+xpFX5yRRg7IC+Az0nOtXKVNh6Oe2nsVy+6RRxHZQ+Z3kgJZRBhaPSBk5lsDNfYRvCKoNdhlW2WL4gZlZcd74= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741881567; c=relaxed/simple; bh=ltv4SGnYeTNOm4U6udF0M3JRhzGYt4vV6y5YQjJTO1o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hS/bQx7BsZhxLfwrmJV0Hz8rYWYv1GL8Q51S1n0cvhhk6AKk0KqfwtIxI04lpMgf8EzoNm7EjWNd/mJ0tkKc7GSrAGAXNCNj+JQt1e8B6oVqikpTzbe+zUJIsfp29cxlS0BmnQZ4EIq5dqO+U5oDK7B7b9ysXDKpVwww/vlrjuM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=d4N46iWD; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="d4N46iWD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1741881564; bh=ltv4SGnYeTNOm4U6udF0M3JRhzGYt4vV6y5YQjJTO1o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=d4N46iWDYoFjgA9IJwU6S4Y1+DmHZGYeHlBi85p9I/DYwaEL+vy0Io38+A2ztkQPH lN4ly9O1Jyn8uFfV4mEzq5D5h2jT+egOepwLtQN+GPB9FHejNmY3CJg6ydnCBjUT6v gXMzA2YQG8l/UAUAHgBqDqACRh0zfn4ZvCMEVBCs= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 13 Mar 2025 16:59:12 +0100 Subject: [PATCH 4/4] x86/boot/compressed: Switch to -ffile-prefix-map Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250313-kbuild-prefix-map-v1-4-38cea8448c5f@weissschuh.net> References: <20250313-kbuild-prefix-map-v1-0-38cea8448c5f@weissschuh.net> In-Reply-To: <20250313-kbuild-prefix-map-v1-0-38cea8448c5f@weissschuh.net> To: Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Ben Hutchings Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1741881563; l=1083; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=ltv4SGnYeTNOm4U6udF0M3JRhzGYt4vV6y5YQjJTO1o=; b=D/vhrS+o3YPzdcbd9BxcgIN1BT9UTcZQzpCKyao1/h6tggjOZTiXNddWjHUU5jipnsvpYRU65 rc5mrA2bh2dCok8Gok9Qi8UrZtzf0lVi0AnIGTd9OSlYWkYavDvhdHn X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= -ffile-prefix-map is a more general variant of the currently used -fmacro-prefix-map. It is also what the top-level Makefile is using now. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Ingo Molnar --- arch/x86/boot/compressed/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/M= akefile index 606c74f274593ebaf6200b7d307a453e2c6e872e..73a67366cb706658f9680cd5086= 4a68546d3dc98 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -38,7 +38,7 @@ KBUILD_CFLAGS +=3D -fno-stack-protector KBUILD_CFLAGS +=3D $(call cc-disable-warning, address-of-packed-member) KBUILD_CFLAGS +=3D $(call cc-disable-warning, gnu) KBUILD_CFLAGS +=3D -Wno-pointer-sign -KBUILD_CFLAGS +=3D $(call cc-option,-fmacro-prefix-map=3D$(srctree)/=3D) +KBUILD_CFLAGS +=3D $(call cc-option,-ffile-prefix-map=3D$(srctree)/=3D) KBUILD_CFLAGS +=3D -fno-asynchronous-unwind-tables KBUILD_CFLAGS +=3D -D__DISABLE_EXPORTS # Disable relocation relaxation in case the link is not PIE. --=20 2.48.1