1 # REQUIRES: zlib, ppc, x86
3 # RUN: llvm-mc -compress-debug-sections=zlib -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: llvm-mc -compress-debug-sections=zlib -filetype=obj -triple=powerpc64-unknown-unknown %s -o %t-be
5 # RUN: llvm-readobj --sections %t | FileCheck -check-prefix=ZLIB %s
6 # RUN: llvm-readobj --sections %t-be | FileCheck -check-prefix=ZLIB %s
9 # ZLIB: Name: .debug_str
10 # ZLIB-NEXT: Type: SHT_PROGBITS
12 # ZLIB-NEXT: SHF_COMPRESSED (0x800)
13 # ZLIB-NEXT: SHF_MERGE (0x10)
14 # ZLIB-NEXT: SHF_STRINGS (0x20)
21 # ZLIB-NEXT: AddressAlignment: 8
22 # ZLIB-NEXT: EntrySize: 1
25 # RUN: ld.lld --hash-style=sysv %t -o %t.so -shared
26 # RUN: llvm-readobj --sections --section-data %t.so | FileCheck -check-prefix=DATA %s
27 # RUN: ld.lld --hash-style=sysv %t-be -o %t-be.so -shared
28 # RUN: llvm-readobj --sections --section-data %t-be.so | FileCheck -check-prefix=DATA %s
32 # DATA: Name: .debug_str
33 # DATA-NEXT: Type: SHT_PROGBITS
35 # DATA-NEXT: SHF_MERGE (0x10)
36 # DATA-NEXT: SHF_STRINGS (0x20)
38 # DATA-NEXT: Address: 0x0
43 # DATA-NEXT: AddressAlignment: 1
44 # DATA-NEXT: EntrySize: 1
45 # DATA-NEXT: SectionData (
46 # DATA-NEXT: 0000: 73686F72 7420756E 7369676E 65642069 |short unsigned i|
47 # DATA-NEXT: 0010: 6E740075 6E736967 6E656420 63686172 |nt.unsigned char|
48 # DATA-NEXT: 0020: 00636861 72006C6F 6E672075 6E736967 |.char.long unsig|
49 # DATA-NEXT: 0030: 6E656420 696E7400 756E7369 676E6564 |ned int.unsigned|
50 # DATA-NEXT: 0040: 20696E74 00 | int.|
54 .section .debug_str,"MS",@progbits,1
56 .string "short unsigned int"
58 .string "unsigned int"
60 .string "long unsigned int"
64 .string "unsigned char"