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
Also, the --decompress option decompresses section content.
https://sourceware.org/pipermail/binutils/2022-October/123240.html [PATCH] readelf: support zstd compressed debug sections [PR 29640]
(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:)
Implemented in https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=1f5a3546126b47fd3b7a5fbc4ec5fad1397b726b (readelf: support zstd compressed debug sections [PR 29640])