Re: [OE-core] [PATCH] lto.inc: add DEBUG_PREFIX_MAP back to TARGET_LDFLAGS

Jörg Sommer
2026-03-30T10:23:59Z

[-- Attachment #1: Type: text/plain, Size: 1633 bytes --]

Richard Purdie schrieb am Mo 30. Mär, 11:18 (+0100):
> On Mon, 2026-03-30 at 11:59 +0200, Thomas Perrot wrote:
> >    1. Hello,
> >
> > On Sat, 2026-03-28 at 21:26 +0100, Jörg Sommer via
> > lists.openembedded.org wrote:
> > > Changqing Li via lists.openembedded.org schrieb am Mi 04. Feb,
> > > 13:26
> > > (+0800):
> > > > From: Changqing Li <changqing.li@windriver.com>
> > > >
> > > > DEBUG_PREFIX_MAP is appended to TARGET_LDFLAGS in commit [1] for
> > > > fixing
> > > > reproducible issue when LTO is enabled. It is removed in comit
> > > > [2]
> > > > since
> > > > this commit causes cgo binary not reproducible. But actually, we
> > > > still
> > > > need this DEBUG_PREFIX_MAP in LDFLAGS when LTO enabled. So, only
> > > > appened
> > > > it when LTO is enabled. Refer [3] for the history, with this
> > > > patch,
> > > > patch [4] is also needed for cgo + lto enabled.
> > >
> > > Gentle ping. This patch is missing, otherwise QA check buildpaths
> > > matches in
> > > nearly all packages.
> >
> > I confirm this patch is required to fix QA check build paths for a
> > few packages.
>
> Can someone please work out a smaller reproducer to provide to upstream
> gcc/binutils so we can try and get the underlying bug fixed?

I've send some simple test cases in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124581

Best regards Jörg

--
Navimatix GmbH T: 03641 - 327 99 0
Tatzendpromenade 2 F: 03641 - 526 306
07745 Jena www.navimatix.de

Geschäftsführer: Steffen Späthe, Jan Rommeley
Registergericht: Amtsgericht Jena, HRB 501480

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5000 bytes --]