rizin icon indicating copy to clipboard operation
rizin copied to clipboard

Support Zstd-compressed ELF debug information sections

Open XVilka opened this issue 1 year ago • 1 comments

The support was introduced recently (not yet released) LLVM:

  • https://github.com/llvm/llvm-project/commit/5e0464e38bcb63186e5c5eaafe550e92143cab43
  • https://github.com/llvm/llvm-project/commit/449f2ca146dde0ef14c9837f71d4a0be92ca4843

More technical details are available in this MaskRay's blog post: https://maskray.me/blog/2022-09-09-zstd-compressed-debug-sections

Basically, it adds a new ch_type for ELFCOMPRESS_ZSTD 2

XVilka avatar Sep 11 '22 02:09 XVilka

I think we should be able to add support for this without additional dependencies.

ret2libc avatar Sep 11 '22 09:09 ret2libc

Binutils 2.40 support it too now: https://lists.gnu.org/archive/html/info-gnu/2023-01/msg00003.html

XVilka avatar Jan 15 '23 04:01 XVilka

MaskRay proposed the support for compressing any arbitrary section: https://discourse.llvm.org/t/rfc-compress-arbitrary-sections-with-ld-lld-compress-sections/71674

Thus, the design of this feature should keep this in mind to be future-proof.

XVilka avatar Jun 29 '23 07:06 XVilka