Bug 29641

Summary: gold, dwp: support zstd for SHF_COMPRESSED debug sections
Product: binutils Reporter: Fangrui Song <i>
Component: goldAssignee: Fangrui Song <i>
Status: RESOLVED FIXED    
Severity: normal CC: dblaikie, ian
Priority: P2    
Version: 2.40   
Target Milestone: 2.40   
See Also: https://sourceware.org/bugzilla/show_bug.cgi?id=29397
Host: Target:
Build: Last reconfirmed:

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]