Re: [PATCH v3] binutils, gdb: support zstd compressed debug sections

Fangrui Song via Gdb-patches
2022-09-29T20:18:12Z

On 2022-09-29, Martin Liška wrote:
>Hello.
>
>Thanks for the patch set. Right now, we configure our binutils package with:
>--enable-compressed-debug-sections=gas and we would appreciate a new configure
>option that will selected default compression algorithm. Having that, we will
>proudly switch to zstd.
>
>Can you please prepare such patch?
>
>Thanks,
>Martin
>

I left a comment on https://sourceware.org/bugzilla/show_bug.cgi?id=19109 that
the --enable-compressed-debug-sections=gas syntax needs extension to
support zstd.

Perhaps the easiest solution (and circumvents the syntax problem) is to
add a new option: --enable-zstd-compressed-debug-sections, but then
there is some duplication...