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

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 28 17:14:01 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'
----------------
MaskRay wrote:

Added!

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


More information about the llvm-commits mailing list