blob: 969aa5973bfd1eefb570cfb715b466c440caacb7 [file] [log] [blame]
George Rimar0373bed2019-03-20 13:57:47 +00001# REQUIRES: zlib
2
3# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o
4
5## Test that after the compression is done we do not remove the symbol
6## and it is placed into the right section.
7
8# RUN: llvm-objcopy --compress-debug-sections %t.o %t-compressed1.o
Fangrui Songe29e30b2019-05-01 05:27:20 +00009# RUN: llvm-readobj --symbols %t-compressed1.o | FileCheck %s --check-prefixes=CHECK,ZLIB
George Rimar0373bed2019-03-20 13:57:47 +000010
11# RUN: llvm-objcopy --compress-debug-sections=zlib-gnu %t.o %t-compressed2.o
Fangrui Songe29e30b2019-05-01 05:27:20 +000012# RUN: llvm-readobj --symbols %t-compressed2.o | FileCheck %s --check-prefixes=CHECK,ZLIBGNU
George Rimar0373bed2019-03-20 13:57:47 +000013
14# CHECK: Name: .Linfo_string0
15# CHECK-NEXT: Value: 0x0
16# CHECK-NEXT: Size: 0
17# CHECK-NEXT: Binding: Global
18# CHECK-NEXT: Type: None
19# CHECK-NEXT: Other: 0
20# ZLIB-NEXT: Section: .debug_bar
21# ZLIBGNU-NEXT: Section: .zdebug_bar