Bug 16523 - support xz compression of debug info files
Summary: support xz compression of debug info files
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-04 08:29 UTC by Emilio Pozuelo Monfort
Modified: 2023-06-26 17:15 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 Emilio Pozuelo Monfort 2014-02-04 08:29:26 UTC
gdb supports xz-compressed debug info files, but objcopy can only compress using zlib at the moment, through --compress-debug-sections. It'd be great if xz compression support was added.
Comment 1 Fangrui Song 2023-06-26 17:15:03 UTC
We now have --compress-debug-sections=zstd as another choice. To achieve a similar compression ratio like xz, zstd is slower to compress, but the decompression is much faster.

Example:
https://archlinux.org/news/now-using-zstandard-instead-of-xz-for-package-compression/
says
"zstd and xz trade blows in their compression ratio. Recompressing all packages to zstd with our options yields a total ~0.8% increase in package size on all of our packages combined, but the decompression time for all packages saw a ~1300% speedup."