public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/29563] New: gdb: support zstd for SHF_COMPRESSED debug sections
@ 2022-09-09 20:02 i at maskray dot me
2022-09-09 20:11 ` [Bug gdb/29563] " i at maskray dot me
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: i at maskray dot me @ 2022-09-09 20:02 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29563
Bug ID: 29563
Summary: gdb: support zstd for SHF_COMPRESSED debug sections
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: i at maskray dot me
Target Milestone: ---
Zstandard is a "universal" compression algorithm which scales from
low-ratio-very-fast to high-ratio-pretty-slow.
The generic-abi proposal https://groups.google.com/g/generic-abi/c/satyPkuMisk
("Add new ch_type value: ELFCOMPRESS_ZSTD") has been approved.
See https://sourceware.org/bugzilla/show_bug.cgi?id=29397 for binutils feature
request.
gdb will need to support SHF_COMPRESSED (ch_type=ELFCOMPRESS_ZSTD) .debug_*
sections in executables, shared objects, and (split DWARF) .dwo files.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gdb/29563] gdb: support zstd for SHF_COMPRESSED debug sections
2022-09-09 20:02 [Bug gdb/29563] New: gdb: support zstd for SHF_COMPRESSED debug sections i at maskray dot me
@ 2022-09-09 20:11 ` i at maskray dot me
2022-09-09 20:18 ` dblaikie at gmail dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: i at maskray dot me @ 2022-09-09 20:11 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29563
--- Comment #1 from Fangrui Song <i at maskray dot me> ---
llvm-project has some components supporting zstd now. Some instructions for
developers who want to test gdb's support:
git clone https://github.com/facebook/zstd
cd zstd
cmake -GNinja -Hbuild/cmake -Bout/release -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/tmp/opt/zstd
make -j 8 install
# See https://llvm.org/docs/GettingStarted.html
# Example: cmake -GNinja -Sllvm -Bout/release -DCMAKE_BUILD_TYPE=Release
-DLLVM_ENABLE_PROJECTS='clang;lld' -DLLVM_ENABLE_ZSTD=FORCE_ON
-DCMAKE_PREFIX_PATH=/tmp/opt/zstd; ninja -C out/release llvm-objcopy clang lld
You can create zstd output with
out/release/bin/llvm-objcopy --compress-debug-sections=zstd a.out a.out.zstd
or out/release/bin/clang -fuse-ld=lld -gz=zstd a.o b.o ...
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gdb/29563] gdb: support zstd for SHF_COMPRESSED debug sections
2022-09-09 20:02 [Bug gdb/29563] New: gdb: support zstd for SHF_COMPRESSED debug sections i at maskray dot me
2022-09-09 20:11 ` [Bug gdb/29563] " i at maskray dot me
@ 2022-09-09 20:18 ` dblaikie at gmail dot com
2022-09-10 0:07 ` sam at gentoo dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dblaikie at gmail dot com @ 2022-09-09 20:18 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29563
David Blaikie <dblaikie at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dblaikie at gmail dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gdb/29563] gdb: support zstd for SHF_COMPRESSED debug sections
2022-09-09 20:02 [Bug gdb/29563] New: gdb: support zstd for SHF_COMPRESSED debug sections i at maskray dot me
2022-09-09 20:11 ` [Bug gdb/29563] " i at maskray dot me
2022-09-09 20:18 ` dblaikie at gmail dot com
@ 2022-09-10 0:07 ` sam at gentoo dot org
2022-09-10 14:58 ` guillaume at morinfr dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: sam at gentoo dot org @ 2022-09-10 0:07 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29563
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gentoo dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gdb/29563] gdb: support zstd for SHF_COMPRESSED debug sections
2022-09-09 20:02 [Bug gdb/29563] New: gdb: support zstd for SHF_COMPRESSED debug sections i at maskray dot me
` (2 preceding siblings ...)
2022-09-10 0:07 ` sam at gentoo dot org
@ 2022-09-10 14:58 ` guillaume at morinfr dot org
2022-09-11 15:12 ` ssbssa at sourceware dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: guillaume at morinfr dot org @ 2022-09-10 14:58 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29563
Guillaume Morin <guillaume at morinfr dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |guillaume at morinfr dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gdb/29563] gdb: support zstd for SHF_COMPRESSED debug sections
2022-09-09 20:02 [Bug gdb/29563] New: gdb: support zstd for SHF_COMPRESSED debug sections i at maskray dot me
` (3 preceding siblings ...)
2022-09-10 14:58 ` guillaume at morinfr dot org
@ 2022-09-11 15:12 ` ssbssa at sourceware dot org
2022-09-19 4:05 ` i at maskray dot me
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ssbssa at sourceware dot org @ 2022-09-11 15:12 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29563
Hannes Domani <ssbssa at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ssbssa at sourceware dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gdb/29563] gdb: support zstd for SHF_COMPRESSED debug sections
2022-09-09 20:02 [Bug gdb/29563] New: gdb: support zstd for SHF_COMPRESSED debug sections i at maskray dot me
` (4 preceding siblings ...)
2022-09-11 15:12 ` ssbssa at sourceware dot org
@ 2022-09-19 4:05 ` i at maskray dot me
2022-09-19 4:24 ` i at maskray dot me
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: i at maskray dot me @ 2022-09-19 4:05 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29563
--- Comment #2 from Fangrui Song <i at maskray dot me> ---
Due to gdb's use of bfd/compress.c, this actually has to be supported in the
same patch that adds zstd support to bfd/. Here it is.
https://sourceware.org/pipermail/gdb-patches/2022-September/191915.html [PATCH]
binutils, gdb: support zstd compressed debug sections
I have tested gdb with a zstd-compressed lld.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gdb/29563] gdb: support zstd for SHF_COMPRESSED debug sections
2022-09-09 20:02 [Bug gdb/29563] New: gdb: support zstd for SHF_COMPRESSED debug sections i at maskray dot me
` (5 preceding siblings ...)
2022-09-19 4:05 ` i at maskray dot me
@ 2022-09-19 4:24 ` i at maskray dot me
2022-09-27 2:54 ` i at maskray dot me
2022-09-27 2:55 ` i at maskray dot me
8 siblings, 0 replies; 10+ messages in thread
From: i at maskray dot me @ 2022-09-19 4:24 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29563
Fangrui Song <i at maskray dot me> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |29584
Referenced Bugs:
https://sourceware.org/bugzilla/show_bug.cgi?id=29584
[Bug 29584] gdb: support zstd compressed .gnu_debugdata
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gdb/29563] gdb: support zstd for SHF_COMPRESSED debug sections
2022-09-09 20:02 [Bug gdb/29563] New: gdb: support zstd for SHF_COMPRESSED debug sections i at maskray dot me
` (6 preceding siblings ...)
2022-09-19 4:24 ` i at maskray dot me
@ 2022-09-27 2:54 ` i at maskray dot me
2022-09-27 2:55 ` i at maskray dot me
8 siblings, 0 replies; 10+ messages in thread
From: i at maskray dot me @ 2022-09-27 2:54 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29563
Fangrui Song <i at maskray dot me> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #3 from Fangrui Song <i at maskray dot me> ---
Closed by
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=2cac01e3ffff74898c54fa5e6418817f5578adb6
"binutils, gdb: support zstd compressed debug sections"
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gdb/29563] gdb: support zstd for SHF_COMPRESSED debug sections
2022-09-09 20:02 [Bug gdb/29563] New: gdb: support zstd for SHF_COMPRESSED debug sections i at maskray dot me
` (7 preceding siblings ...)
2022-09-27 2:54 ` i at maskray dot me
@ 2022-09-27 2:55 ` i at maskray dot me
8 siblings, 0 replies; 10+ messages in thread
From: i at maskray dot me @ 2022-09-27 2:55 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29563
Fangrui Song <i at maskray dot me> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.1
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-09-27 2:55 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-09 20:02 [Bug gdb/29563] New: gdb: support zstd for SHF_COMPRESSED debug sections i at maskray dot me
2022-09-09 20:11 ` [Bug gdb/29563] " i at maskray dot me
2022-09-09 20:18 ` dblaikie at gmail dot com
2022-09-10 0:07 ` sam at gentoo dot org
2022-09-10 14:58 ` guillaume at morinfr dot org
2022-09-11 15:12 ` ssbssa at sourceware dot org
2022-09-19 4:05 ` i at maskray dot me
2022-09-19 4:24 ` i at maskray dot me
2022-09-27 2:54 ` i at maskray dot me
2022-09-27 2:55 ` i at maskray dot me
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).