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

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 28 17:14:00 PDT 2024


================
@@ -0,0 +1,32 @@
+## Disallow (de)compression for sections within a segment as they are
+## effectively immutable.
+# RUN: rm -rf %t && mkdir %t && cd %t
+# RUN: yaml2obj %s -o a
+# RUN: not llvm-objcopy a /dev/null --compress-sections .text=zlib --compress-sections foo=none 2>&1 | FileCheck %s
+
+# CHECK: error: 'a': section '.text' within a segment cannot be (de)compressed
----------------
MaskRay wrote:

Split

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


More information about the llvm-commits mailing list