lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNAR8pRJXCPaiEjUAQs9L-FM3p3yv5wTfSjw5FN616hqDYQ@mail.gmail.com>
Date: Sun, 11 May 2025 05:37:02 +0200
From: Masahiro Yamada <masahiroy@...nel.org>
To: Thomas Weißschuh <linux@...ssschuh.net>
Cc: Ville Syrjälä <ville.syrjala@...ux.intel.com>, 
	Nathan Chancellor <nathan@...nel.org>, Nicolas Schier <nicolas@...sle.eu>, Jonathan Corbet <corbet@....net>, 
	Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>, 
	Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org, 
	"H. Peter Anvin" <hpa@...or.com>, Ben Hutchings <ben@...adent.org.uk>, linux-kbuild@...r.kernel.org, 
	linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org
Subject: Re: [PATCH v2] kbuild: make all file references relative to source root

On Mon, May 5, 2025 at 9:30 AM Thomas Weißschuh <linux@...ssschuh.net> wrote:
>
> On 2025-04-29 22:51:17+0300, Ville Syrjälä wrote:
> > On Sat, Mar 15, 2025 at 02:20:14PM +0100, Thomas Weißschuh 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.
> >
> > Hi,
> >
> > This broke 'objdump -S' completely for me.
> >
> > I see the following difference in the debug info:
> > -    <12>   DW_AT_name        : (indirect line string, offset: 0): drivers/gpu/drm/i915/i915_config.c
> > -    <16>   DW_AT_comp_dir    : (indirect line string, offset: 0x23): /home/.../src/linux-2.6/build
> > +    <12>   DW_AT_name        : (indirect line string, offset: 0): ../drivers/gpu/drm/i915/i915_config.c
> > +    <16>   DW_AT_comp_dir    : (indirect line string, offset: 0x26): /home/.../src/linux-2.6/build
> >
> > Looks like I can work around it with some combination of --prefix and
> > --prefix-strip, but that seems far too tedious to have to do every
> > time I need to decode an oops.
>
> Yeah the --prefix and --prefix-strip mechanism is only an ugly
> workaround.
> Unfortunately I don't see a nice for this issue at the moment.
>
> Masahiro, could you revert this commit for now?
> I'll try to come up with something better.

Could you submit a patch
with a commit description?

Thanks.




-- 
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ