diff options
| author | Puyan Lotfi <puyan@puyan.org> | 2018-10-01 10:29:41 +0000 |
|---|---|---|
| committer | Puyan Lotfi <puyan@puyan.org> | 2018-10-01 10:29:41 +0000 |
| commit | af048648d367cc23f923e11ea8cbf909e2c3bde4 (patch) | |
| tree | 7bbd5fc23a18580adc552662585b40e42452cc51 /llvm/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test | |
| parent | 8600fee52ee134e84175f5b578f72133b9d2edca (diff) | |
| download | bcm5719-llvm-af048648d367cc23f923e11ea8cbf909e2c3bde4.tar.gz bcm5719-llvm-af048648d367cc23f923e11ea8cbf909e2c3bde4.zip | |
[llvm-objcopy] Adding support for decompressing zlib compressed dwarf sections.
Summary: I had added support for compressing dwarf sections in a prior commit,
this one adds support for decompressing. Usage is:
llvm-objcopy --decompress-debug-sections input.o output.o
Reviewers: jakehehrlich, jhenderson, alexshap
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D51841
llvm-svn: 343451
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test')
| -rw-r--r-- | llvm/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test b/llvm/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test index eb697522de2..7199b2e5e11 100644 --- a/llvm/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test +++ b/llvm/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test @@ -2,12 +2,26 @@ # RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o # RUN: llvm-objcopy --compress-debug-sections=zlib-gnu %t.o %t-compressed.o +# RUN: llvm-objcopy --decompress-debug-sections %t-compressed.o %t-decompressed.o # RUN: llvm-objdump -s %t.o -section=.debug_foo | FileCheck %s # RUN: llvm-objdump -s %t-compressed.o | FileCheck %s --check-prefix=CHECK-COMPRESSED # RUN: llvm-readobj -relocations -s %t-compressed.o | FileCheck %s --check-prefix=CHECK-FLAGS +# RUN: llvm-readobj -relocations -s %t-decompressed.o | FileCheck %s --check-prefix=CHECK-HEADER +# RUN: llvm-readobj -relocations -s %t.o | FileCheck %s --check-prefix=CHECK-HEADER +# RUN: llvm-objdump -s %t-decompressed.o -section=.debug_foo | FileCheck %s # CHECK: .debug_foo: +# CHECK-NEXT: 0000 00000000 00000000 + +# CHECK-HEADER: Index: 1 +# CHECK-HEADER-NEXT: Name: .debug_foo +# CHECK-HEADER-NEXT: Type: SHT_PROGBITS +# CHECK-HEADER-NEXT: Flags [ +# CHECK-HEADER-NEXT: ] +# CHECK-HEADER-NEXT: Address: +# CHECK-HEADER-NEXT: Offset: +# CHECK-HEADER-NEXT: Size: 8 # CHECK-COMPRESSED: .zdebug_foo: # CHECK-COMPRESSED: ZLIB |

