Re: [PATCH v3] Makefile.debug: support for -gz=zstd

From: Sedat Dilek
Date: Tue Jan 03 2023 - 14:40:56 EST


On Sun, Nov 13, 2022 at 12:01 PM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
>
> On Fri, Nov 11, 2022 at 5:00 AM Nick Desaulniers
> <ndesaulniers@xxxxxxxxxx> wrote:
...
>
> Applied to linux-kbuild.
> Thanks.
...
> > Changes v2 -> v3:
> > * Fix scripts/Makefile.debug as per Sedat.
> > * Update commit message as per Nicolas.
> >
> > Changes v1 -> v2:
> > * Remove `depends on DEBUG_KERNEL` as per Nathan.
> > * Rename Kconfigs as per Sedat and Masahiro.
> > * Add note about renamed Kconfigs to commit message.
> > * Add more help text to DEBUG_INFO_COMPRESSED_ZSTD.
...
> > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> > index 29280072dc0e..7c28a8fba02e 100644
> > --- a/lib/Kconfig.debug
> > +++ b/lib/Kconfig.debug
...
> > +config DEBUG_INFO_COMPRESSED_ZSTD
> > + bool "Compress debugging information with zstd"
> > + depends on $(cc-option,-gz=zstd)
> > + depends on $(ld-option,--compress-debug-sections=zstd)
> > + help
> > + Compress the debug information using zstd. This may provide better
> > + compression than zlib, for about the same time costs, but requires newer
> > + toolchain support. Requires GCC 13.0+ or Clang 16.0+, binutils 2.40+, and
> > + zstd.
> > +
> > +endchoice # "Compressed Debug information"

Just saw:

GNU Binutils 2.40 Branched With Zstd Support, Zen 4, New Intel Instructions

Debian GNU/Linux ships version 2.39.90 in unstable release.

Maybe someone can point me to the release schedule of LLVM-16?

Thanks.

Best regards,
-Sedat-

[1] https://www.phoronix.com/news/GNU-Binutils-2.40
[2] https://metadata.ftp-master.debian.org/changelogs//main/b/binutils/binutils_2.39.90.20221231-1_changelog