[llvm] [llvm-objcopy] Add --compress-sections (PR #85036)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 02:37:32 PDT 2024


================
@@ -0,0 +1,117 @@
+# REQUIRES: x86-registered-target, zlib, zstd
+
+# RUN: rm -rf %t && mkdir %t && cd %t
+# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o a.o
+# RUN: llvm-objcopy a.o out --compress-sections='*0=zlib' --compress-sections '*0=none' --compress-sections 'nomatch=none'
----------------
jh7370 wrote:

I've looked at this multiple times now and to me it seems like the result should be a no-op for all `*0` sections, naively. I think the test cases could do with some comments clarifying what they are trying to show.

https://github.com/llvm/llvm-project/pull/85036


More information about the llvm-commits mailing list