1# REQUIRES: zlib 2 3# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o 4# RUN: cp %t.o %t.copy.o 5 6# RUN: llvm-objcopy --compress-debug-sections=zlib %t.o %tz.o 7# RUN: llvm-objcopy --compress-debug-sections=zlib-gnu %t.o %tzg.o 8# RUN: cp %tz.o %tz.copy.o 9# RUN: cp %tzg.o %tzg.copy.o 10 11# RUN: llvm-objcopy --decompress-debug-sections %tz.o %t2.o 12# RUN: llvm-objcopy --decompress-debug-sections %tzg.o %t3.o 13 14# Using redirects to avoid llvm-objdump from printing the filename. 15# RUN: llvm-objdump -s --section=.debug_str - < %t.o > %t.txt 16# RUN: llvm-objdump -s --section=.debug_str - < %t2.o > %t2.txt 17# RUN: llvm-objdump -s --section=.debug_str - < %t3.o > %t3.txt 18 19# RUN: diff %t.txt %t2.txt 20# RUN: diff %t.txt %t3.txt 21 22# RUN: cmp %t.o %t.copy.o 23# RUN: cmp %tz.o %tz.copy.o 24# RUN: cmp %tzg.o %tzg.copy.o 25