1# REQUIRES: x86, zlib 2 3# RUN: llvm-mc -compress-debug-sections=zlib-gnu -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 4# RUN: llvm-readobj --sections %t1 | FileCheck -check-prefix=GNU %s 5# GNU: Name: .zdebug_str 6 7# RUN: ld.lld %t1 -o %t2 -r 8# RUN: llvm-readobj --sections --section-data %t2 | FileCheck %s 9 10## Check we uncompress section and remove ".z" prefix specific for zlib-gnu compression. 11# CHECK: Section { 12# CHECK: Index: 13# CHECK: Name: .debug_str 14# CHECK-NEXT: Type: SHT_PROGBITS 15# CHECK-NEXT: Flags [ 16# CHECK-NEXT: SHF_MERGE 17# CHECK-NEXT: SHF_STRINGS 18# CHECK-NEXT: ] 19# CHECK-NEXT: Address: 20# CHECK-NEXT: Offset: 21# CHECK-NEXT: Size: 22# CHECK-NEXT: Link: 23# CHECK-NEXT: Info: 24# CHECK-NEXT: AddressAlignment: 1 25# CHECK-NEXT: EntrySize: 1 26# CHECK-NEXT: SectionData ( 27# CHECK-NEXT: 0000: {{.*}} |long unsigned in| 28# CHECK-NEXT: 0010: {{.*}} |t.unsigned char.| 29# CHECK-NEXT: 0020: {{.*}} |unsigned int.cha| 30# CHECK-NEXT: 0030: {{.*}} |r.short unsigned| 31# CHECK-NEXT: 0040: {{.*}} | int.| 32# CHECK-NEXT: ) 33# CHECK-NEXT: } 34 35.section .debug_str,"MS",@progbits,1 36.LASF2: 37 .string "short unsigned int" 38.LASF3: 39 .string "unsigned int" 40.LASF0: 41 .string "long unsigned int" 42.LASF8: 43 .string "char" 44.LASF1: 45 .string "unsigned char" 46