Re: debug files now have program headers

From: Ed Maste <emaste_at_freebsd.org>
Date: Tue, 07 Apr 2026 16:12:30 UTC
> > > I just noticed that debug files now contain program headers.
> > > ...
> > > That's not a problem for most users but it is quite a big issue for me trying to debug Valgrind itself.
> > >
> > > Is this going to be a permanent change?
> >
> > I guess this is due to WITH_LLVM_BINUTILS being the default now.
>
> That's correct, the informational context is here:
> https://sourceware.org/bugzilla/show_bug.cgi?id=33876#c1

Yes, it should be LLVM_BINUTILS_BOOTSTRAP that's responsible, not
LLVM_BINUTILS. The former is only in main while LLVM_BINUTILS is also
in stable/15. The changes to support LLVM_BINUTILS BOOTSTRAP were
missing from the original LLVM_BINUTILS work; it was not intentional
that we continued to use ELF Tool Chain tools for the bootstrap.

We discovered this because another tool (i.e., libabigail) failed when
the standalone debug files _lacked_ program headers, and I believe
this is the expected state in the GNU tool / Linux distro world. I
presume Valgrind on Linux handles this somehow?