Bug 29640 - readelf: support zstd for SHF_COMPRESSED debug sections
Summary: readelf: support zstd for SHF_COMPRESSED debug sections
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.40
: P2 normal
Target Milestone: ---
Assignee: Fangrui Song
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-30 09:23 UTC by Martin Liska
Modified: 2022-10-21 16:35 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liska 2022-09-30 09:23:01 UTC
Right now, readelf can't read ZSTD compressed sections:

$ readelf -wi a.o
readelf: Warning: section '.debug_str' has unsupported compress type: 2
readelf: Warning: section '.debug_info' has unsupported compress type: 2
Comment 1 Fangrui Song 2022-09-30 23:45:43 UTC
Also, the --decompress option decompresses section content.
Comment 2 Fangrui Song 2022-10-01 06:21:41 UTC
https://sourceware.org/pipermail/binutils/2022-October/123240.html [PATCH] readelf: support zstd compressed debug sections [PR 29640]
Comment 3 Fangrui Song 2022-10-20 07:32:01 UTC
(In reply to Fangrui Song from comment #2)
> https://sourceware.org/pipermail/binutils/2022-October/123240.html [PATCH]
> readelf: support zstd compressed debug sections [PR 29640]

The patch is stilling waiting for a review:)
Comment 4 Fangrui Song 2022-10-21 16:35:11 UTC
Implemented in https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=1f5a3546126b47fd3b7a5fbc4ec5fad1397b726b (readelf: support zstd compressed debug sections [PR 29640])