[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / compressed-debug-input.s
blob42e8c856dd64fc44cbe3f6b771de7b9042bce5c7
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
7 # ZLIB: Section {
8 # ZLIB: Index: 2
9 # ZLIB: Name: .debug_str
10 # ZLIB-NEXT: Type: SHT_PROGBITS
11 # ZLIB-NEXT: Flags [
12 # ZLIB-NEXT: SHF_COMPRESSED (0x800)
13 # ZLIB-NEXT: SHF_MERGE (0x10)
14 # ZLIB-NEXT: SHF_STRINGS (0x20)
15 # ZLIB-NEXT: ]
16 # ZLIB-NEXT: Address:
17 # ZLIB-NEXT: Offset:
18 # ZLIB-NEXT: Size:
19 # ZLIB-NEXT: Link:
20 # ZLIB-NEXT: Info:
21 # ZLIB-NEXT: AddressAlignment: 8
22 # ZLIB-NEXT: EntrySize: 1
23 # ZLIB-NEXT: }
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
30 # DATA: Section {
31 # DATA: Index: 6
32 # DATA: Name: .debug_str
33 # DATA-NEXT: Type: SHT_PROGBITS
34 # DATA-NEXT: Flags [
35 # DATA-NEXT: SHF_MERGE (0x10)
36 # DATA-NEXT: SHF_STRINGS (0x20)
37 # DATA-NEXT: ]
38 # DATA-NEXT: Address: 0x0
39 # DATA-NEXT: Offset:
40 # DATA-NEXT: Size: 69
41 # DATA-NEXT: Link: 0
42 # DATA-NEXT: Info: 0
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.|
51 # DATA-NEXT: )
52 # DATA-NEXT: }
54 .section .debug_str,"MS",@progbits,1
55 .LASF2:
56 .string "short unsigned int"
57 .LASF3:
58 .string "unsigned int"
59 .LASF0:
60 .string "long unsigned int"
61 .LASF8:
62 .string "char"
63 .LASF1:
64 .string "unsigned char"