xref: /llvm-project/llvm/test/tools/llvm-objcopy/ELF/decompress-debug-sections-err.test (revision b6e1fd761d2831fef82c7ce4909832a10cce5dc2)
1# REQUIRES: zlib
2# RUN: yaml2obj %s -o %t
3# RUN: not llvm-objcopy --decompress-debug-sections %t /dev/null 2>&1 | FileCheck %s -DFILE=%t
4
5# CHECK:       error: '[[FILE]]': --decompress-debug-sections: ch_type (3) of section '.debug_info' is unsupported
6# CHECK-EMPTY:
7
8--- !ELF
9FileHeader:
10  Class:   ELFCLASS64
11  Data:    ELFDATA2LSB
12  Type:    ET_REL
13  Machine: EM_X86_64
14Sections:
15  - Name:         .debug_info
16    Type:         SHT_PROGBITS
17    Flags:        [ SHF_COMPRESSED ]
18    Content:      030000000000000004000000000000000000000000000000789c6360
19    AddressAlign: 8
20  - Name:         .debug_str
21    Type:         SHT_PROGBITS
22    Flags:        [ SHF_COMPRESSED ]
23    Content:      030000000000000004000000000000000000000000000000789c6360
24    AddressAlign: 8
25