brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 00d08a9 Raw
38 lines · plain
1# REQUIRES: x86, zlib2 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o4# RUN: ld.lld %t.o -o %t1 --compress-debug-sections=zlib5 6# RUN: llvm-objdump -s %t1 | FileCheck %s --check-prefix=ZLIBCONTENT7# ZLIBCONTENT:     Contents of section .debug_str:8# ZLIBCONTENT-NOT: AAAAAAAAA9 10# RUN: llvm-readobj -S %t1 | FileCheck %s --check-prefix=ZLIBFLAGS11# ZLIBFLAGS:       Section {12# ZLIBFLAGS:         Index:13# ZLIBFLAGS:         Name: .debug_str14# ZLIBFLAGS-NEXT:    Type: SHT_PROGBITS15# ZLIBFLAGS-NEXT:    Flags [16# ZLIBFLAGS-NEXT:      SHF_COMPRESSED17 18# RUN: llvm-dwarfdump %t1 -debug-str | \19# RUN:   FileCheck %s --check-prefix=DEBUGSTR20# DEBUGSTR:     .debug_str contents:21# DEBUGSTR-NEXT:  BBBBBBBBBBBBBBBBBBBBBBBBBBB22# DEBUGSTR-NEXT:  AAAAAAAAAAAAAAAAAAAAAAAAAAA23 24## Test alias.25# RUN: ld.lld %t.o -o %t2 --compress-debug-sections zlib26# RUN: llvm-objdump -s %t2 | FileCheck %s --check-prefix=ZLIBCONTENT27# RUN: llvm-readobj -S %t2 | FileCheck %s --check-prefix=ZLIBFLAGS28 29# RUN: not ld.lld %t.o -o /dev/null --compress-debug-sections=zlib-gabi 2>&1 | \30# RUN:   FileCheck -check-prefix=ERR %s31# ERR: unknown --compress-debug-sections value: zlib-gabi32 33.section .debug_str,"MS",@progbits,134.Linfo_string0:35  .asciz "AAAAAAAAAAAAAAAAAAAAAAAAAAA"36.Linfo_string1:37  .asciz "BBBBBBBBBBBBBBBBBBBBBBBBBBB"38