[PATCH] D128667: [WIP] Add Zstd ELF support

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 27 11:59:02 PDT 2022


MaskRay added a comment.

`llvm-objcopy --decompress-debug-sections clang.zstd clang.zstd.uncompress` doesn't work.

  % /tmp/out/custom1/bin/llvm-objcopy --decompress-debug-sections clang.zstd clang.zstd.uncompress
  /tmp/out/custom1/bin/llvm-objcopy: error: 'clang.zstd': '.debug_loc': zlib error: Z_DATA_ERROR

Add a new test `llvm/test/tools/llvm-objcopy/compress-debug-sections-zstd.test` and check existing tests for zlib (SHF_COMPRESSED).
I'll create a patch to remove .zdebug support to simplify the code.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128667/new/

https://reviews.llvm.org/D128667



More information about the cfe-commits mailing list