diff options
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/ELF/compression.s | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/llvm/test/MC/ELF/compression.s b/llvm/test/MC/ELF/compression.s index edee6f878f0..5560ba78c68 100644 --- a/llvm/test/MC/ELF/compression.s +++ b/llvm/test/MC/ELF/compression.s @@ -3,19 +3,13 @@ // RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck --check-prefix=INFO %s // RUN: llvm-mc -filetype=obj -compress-debug-sections -triple i386-pc-linux-gnu < %s \ // RUN: | llvm-readobj -symbols - | FileCheck --check-prefix=386-SYMBOLS %s -// RUN: llvm-readobj -sections %t | FileCheck --check-prefix=ZLIB %s // REQUIRES: zlib -// Check that debug_line section was not renamed, so it is -// zlib-style, not zlib-gnu one. Check that SHF_COMPRESSED was set. -// ZLIB: Section { -// ZLIB: Index: -// ZLIB: Name: .debug_line -// ZLIB-NEXT: Type: SHT_PROGBITS -// ZLIB-NEXT: Flags [ -// ZLIB-NEXT: SHF_COMPRESSED -// ZLIB-NEXT: ] +// CHECK: Contents of section .zdebug_line: +// Check for the 'ZLIB' file magic at the start of the section only +// CHECK-NEXT: ZLIB +// CHECK-NOT: ZLIB // Don't compress small sections, such as this simple debug_abbrev example // CHECK: Contents of section .debug_abbrev: @@ -36,7 +30,7 @@ // sections, so make sure we handle symbols inside compressed sections // 386-SYMBOLS: Name: .Linfo_string0 // 386-SYMBOLS-NOT: } -// 386-SYMBOLS: Section: .debug_str +// 386-SYMBOLS: Section: .zdebug_str .section .debug_line,"",@progbits |