1 ## Disallow (de)compression for sections within a segment as they are
2 ## effectively immutable.
3 # RUN: rm -rf %t && mkdir %t && cd %t
4 # RUN: yaml2obj %s -o a
5 # RUN: not llvm-objcopy a /dev/null --compress-sections .text=zlib 2>&1 | FileCheck %s --implicit-check-not=error:
7 # CHECK: error: 'a': section '.text' within a segment cannot be (de)compressed
9 # RUN: not llvm-objcopy a /dev/null --compress-sections foo=none 2>&1 | FileCheck %s --check-prefix=CHECK2 --implicit-check-not=error:
11 # CHECK2: error: 'a': section 'foo' within a segment cannot be (de)compressed
13 ## There is an error even if 'foo' is already compressed with zlib.
14 # RUN: not llvm-objcopy a /dev/null --compress-sections foo=zlib 2>&1 | FileCheck %s --check-prefix=CHECK3 --implicit-check-not=error:
16 # CHECK3: error: 'a': section 'foo' within a segment cannot be (de)compressed
37 Flags
: [ SHF_COMPRESSED
]
38 Content
: 010000000000000040000000000000000100000000000000789cd36280002d3269002f800151