Also, add ELFCOMPRESS_ZSTD (2) from the approved generic-abi proposal: https://groups.google.com/g/generic-abi/c/satyPkuMisk ("Add new ch_type value: ELFCOMPRESS_ZSTD") Link: https://discourse.llvm.org/t/rfc-zstandard-as-a-second-compression-method-to-llvm/63399 ("[RFC] Zstandard as a second compression method to LLVM") Reviewed By: jhenderson, dblaikie Differential Revision: https://reviews.llvm.org/D130458
17 lines
465 B
Plaintext
17 lines
465 B
Plaintext
# REQUIRES: zlib
|
|
|
|
# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o
|
|
# RUN: llvm-objcopy --compress-debug-sections %t.o %t-compressed.o
|
|
# RUN: llvm-readobj -S --sd %t-compressed.o | FileCheck %s
|
|
|
|
# CHECK: Name: .debug_foo
|
|
# CHECK-NEXT: Type: SHT_PROGBITS
|
|
# CHECK-NEXT: Flags [
|
|
# CHECK-NEXT: SHF_COMPRESSED
|
|
# CHECK-NEXT: ]
|
|
# CHECK: SectionData (
|
|
## ch_type = ELFCOMPRESS_ZLIB (1)
|
|
# CHECK-NEXT: 0000: 01000000 {{.*}}
|
|
# CHECK-NOT: Name: .debug_foo
|
|
|