public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Fangrui Song <i@maskray.me>
To: binutils@sourceware.org, gdb@sourceware.org,
	gnu-gabi@sourceware.org, gcc@gcc.gnu.org
Subject: New ch_type value ELFCOMPRESS_ZSTD?
Date: Sun, 26 Jun 2022 23:38:59 -0700	[thread overview]
Message-ID: <20220627063859.27tgplebjcyxxdwi@gmail.com> (raw)

I created https://groups.google.com/g/generic-abi/c/satyPkuMisk ("Add new
ch_type value: ELFCOMPRESS_ZSTD") after I saw that on LLVM side, Cole Kissane
proposes that we add Zstandard as new compression method (mainly for .debug*
sections, but also for some LLVM internal things)
https://discourse.llvm.org/t/rfc-zstandard-as-a-second-compression-method-to-llvm/63399

This makes a lot of sense to me as I know compression/uncompression takes a lot
of compile/link time.  If people agree that this is a good direction, I wish
that we can have a generic-abi value: ELFCOMPRESS_ZSTD 2.  If that does not
work, perhaps we need a GNU ABI value.

We will need features from a bunch of tools:

* GCC/Clang: perhaps we can introduce a new driver option -gz=zstd
* GNU assembler: add --compress-debug-sections=zstd
* GNU ld: add --compress-debug-sections=zstd
* objcopy/llvm-objcopy: add --compress-debug-sections=zstd
* gdb: support Zstandard
* elfutils: support Zstandard

             reply	other threads:[~2022-06-27  6:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27  6:38 Fangrui Song [this message]
2022-06-28 11:25 ` Nick Alcock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220627063859.27tgplebjcyxxdwi@gmail.com \
    --to=i@maskray.me \
    --cc=binutils@sourceware.org \
    --cc=gcc@gcc.gnu.org \
    --cc=gdb@sourceware.org \
    --cc=gnu-gabi@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).