brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · d9f29af Raw
45 lines · plain
1# REQUIRES: x86, zstd2 3# RUN: llvm-mc -filetype=obj -triple=x86_64 --compress-debug-sections=zstd %s -o %t.o4 5# RUN: ld.lld %t.o -o %t.so -shared6# RUN: llvm-readelf -S -p .debug_str %t.so | FileCheck %s7 8# CHECK:      .debug_str    PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] 01 MS  0 0  19# CHECK:      String dump of section '.debug_str':10# CHECK-NEXT: [     0] {{A+}}11# CHECK-NEXT: [    81] short unsigned int12# CHECK-NEXT: [    94] unsigned char13# CHECK-NEXT: [    a2] char14# CHECK-NEXT: [    a7] long unsigned int15# CHECK-NEXT: [    b9] unsigned int16 17# RUN: ld.lld %t.o -o %t.so -shared --compress-debug-sections=zstd18# RUN: llvm-readelf -S %t.so | FileCheck %s --check-prefix=OUTPUT-SEC19# RUN: llvm-objcopy --decompress-debug-sections %t.so20# RUN: llvm-readelf -S -p .debug_str %t.so | FileCheck %s21 22# OUTPUT-SEC:      .debug_str    PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] 01 MSC 0 0  123# OUTPUT-SEC-NEXT: .debug_frame  PROGBITS [[#%x,]] [[#%x,]] 000000   00     0 0  124# OUTPUT-SEC-NEXT: .debug_loc    PROGBITS [[#%x,]] [[#%x,]] 000010   00     0 0  125 26.section .debug_str,"MS",@progbits,127.LASF2:28 .string "short unsigned int"29.LASF3:30 .string "unsigned int"31.LASF0:32 .string "long unsigned int"33.LASF8:34 .string "char"35.LASF1:36 .string "unsigned char"37.Lunused:38 .fill 128, 1, 0x4139 .byte 040 41## Test sections where compressed content would be larger.42.section .debug_frame,""43.section .debug_loc,""44.space 1645