George Rimar | 0373bed | 2019-03-20 13:57:47 +0000 | [diff] [blame] | 1 | # 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 Song | e29e30b | 2019-05-01 05:27:20 +0000 | [diff] [blame] | 9 | # RUN: llvm-readobj --symbols %t-compressed1.o | FileCheck %s --check-prefixes=CHECK,ZLIB |
George Rimar | 0373bed | 2019-03-20 13:57:47 +0000 | [diff] [blame] | 10 | |
| 11 | # RUN: llvm-objcopy --compress-debug-sections=zlib-gnu %t.o %t-compressed2.o |
Fangrui Song | e29e30b | 2019-05-01 05:27:20 +0000 | [diff] [blame] | 12 | # RUN: llvm-readobj --symbols %t-compressed2.o | FileCheck %s --check-prefixes=CHECK,ZLIBGNU |
George Rimar | 0373bed | 2019-03-20 13:57:47 +0000 | [diff] [blame] | 13 | |
| 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 |