brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · fb4919b Raw
42 lines · plain
1# REQUIRES: zlib2 3# RUN: yaml2obj %s -o %t1.o4# RUN: llvm-objcopy --compress-debug-sections %t1.o %t2.o5# RUN: llvm-readobj -S %t2.o | FileCheck %s6 7# Non-.zdebug* sections whose data does start with "ZLIB" should8# not be considered as zlib-gnu compressed sections.9 10# In this test we have 2 normal sections, one of them starts with "ZLIB",11# another starts with "ZZZZ". Check we compress both as expected.12 13# CHECK:        Name: .debug_foo14# CHECK-NEXT:   Type: SHT_PROGBITS15# CHECK-NEXT:   Flags [16# CHECK-NEXT:     SHF_COMPRESSED17# CHECK-NEXT:   ]18 19# CHECK:        Name: .debug_bar20# CHECK-NEXT:   Type: SHT_PROGBITS21# CHECK-NEXT:   Flags [22# CHECK-NEXT:     SHF_COMPRESSED23# CHECK-NEXT:   ]24 25--- !ELF26FileHeader:      27  Class:           ELFCLASS6428  Data:            ELFDATA2LSB29  Type:            ET_REL30  Machine:         EM_X86_6431Sections:        32  - Name:            .debug_foo33    Type:            SHT_PROGBITS34    AddressAlign:    0x000000000000000135    # "ZLIB"36    Content:         5A4C4942000000000000000037  - Name:            .debug_bar38    Type:            SHT_PROGBITS39    AddressAlign:    0x000000000000000140    # "ZZZZ"41    Content:         5A5A5A5A000000000000000042