3 # RUN: llvm-mc -filetype=obj -triple=x86_64 --compress-debug-sections=zstd %s -o %t.o
5 # RUN: ld.lld %t.o -o %t.so -shared
6 # RUN: llvm-readelf -S -x .debug_str %t.so | FileCheck %s
8 # CHECK: .debug_str PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] 01 MS 0 0 1
9 # CHECK: Hex dump of section '.debug_str':
10 # CHECK-NEXT: 0x00000000 73686f72 7420756e 7369676e 65642069 short unsigned i
11 # CHECK-NEXT: 0x00000010 6e740075 6e736967 6e656420 63686172 nt.unsigned char
12 # CHECK-NEXT: 0x00000020 00636861 72006c6f 6e672075 6e736967 .char.long unsig
13 # CHECK-NEXT: 0x00000030 6e656420 696e7400 756e7369 676e6564 ned int.unsigned
14 # CHECK-NEXT: 0x00000040 20696e74 00 int.
16 # RUN: ld.lld %t.o -o %t.so -shared --compress-debug-sections=zstd
17 # RUN: llvm-readelf -S %t.so | FileCheck %s --check-prefix=OUTPUT-SEC
18 # RUN: llvm-objcopy --decompress-debug-sections %t.so
19 # RUN: llvm-readelf -S -x .debug_str %t.so | FileCheck %s
21 # OUTPUT-SEC: .debug_str PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] 01 MSC 0 0 1
23 .section .debug_str,"MS",@progbits,1
25 .string "short unsigned int"
27 .string "unsigned int"
29 .string "long unsigned int"
33 .string "unsigned char"