On Sat, Mar 15, 2025 at 10:20 PM Thomas Weißschuh <linux@xxxxxxxxxxxxxx> wrote: > > -fmacro-prefix-map only affects __FILE__ and __BASE_FILE__. > Other references, for example in debug information, are not affected. > This makes handling of file references in the compiler outputs harder to > use and creates problems for reproducible builds. > > Switch to -ffile-prefix map which affects all references. > > Also drop the documentation section advising manual specification of > -fdebug-prefix-map for reproducible builds, as it is not necessary > anymore. > > Suggested-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx> > Link: https://lore.kernel.org/lkml/c49cc967294f9a3a4a34f69b6a8727a6d3959ed8.camel@xxxxxxxxxxxxxxx/ > Acked-by: Borislav Petkov (AMD) <bp@xxxxxxxxx> # arch/x86/ > Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx> > --- > Changes in v2: > - Pick up Ack from Borislav > - Merge all changes into single patch > - Also drop link to KCFLAGS from docs > - Link to v1: https://lore.kernel.org/r/20250313-kbuild-prefix-map-v1-0-38cea8448c5f@xxxxxxxxxxxxxx > --- Applied to linux-kbuild. Thanks. -- Best Regards Masahiro Yamada