Bug 29641 - gold, dwp: support zstd for SHF_COMPRESSED debug sections
Summary: gold, dwp: support zstd for SHF_COMPRESSED debug sections
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gold (show other bugs)
Version: 2.40
: P2 normal
Target Milestone: 2.40
Assignee: Fangrui Song
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-30 23:47 UTC by Fangrui Song
Modified: 2022-11-11 06:21 UTC (History)
2 users (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 Fangrui Song 2022-09-30 23:47:47 UTC
dwp needs to decompress compressed .dwo .
gold needs to decompress compressed input sections and compress output debug sections.

I can take a stab on this feature request.
Comment 1 David Blaikie 2022-10-01 00:00:57 UTC
Presumably some of this comes for free from common binutils infrastructure, like was the case for gdb, maybe?
Comment 2 Fangrui Song 2022-10-01 01:47:00 UTC
bfd/compress.c is used by many utilities (objcopy/addr2line/objdump/etc), but gas/readelf need to implement their own. gold/dwp share code and need separate support as well.

https://sourceware.org/pipermail/binutils/2022-October/123232.html [PATCH] gold, dwp: support zstd compressed input debug sections [PR 29641]