[PATCH] D133548: [ELF] Add --compress-debug-sections=zstd
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 8 18:50:14 PDT 2022
MaskRay created this revision.
MaskRay added reviewers: ikudrin, peter.smith, phosek.
Herald added subscribers: StephenFan, arichardson, emaste.
Herald added a reviewer: alexander-shaposhnikov.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This compresses output debug sections with zstd and sets ch_type to
ELFCOMPRESS_ZSTD. As of today, very few DWARF consumers recognize
ELFCOMPRESS_ZSTD.
Use the llvm::zstd::compress API with level llvm::zstd::DefaultCompression (5),
which we may tune after we have more experience with zstd output.
zstd has built-in parallel compression support (so we don't need to do D117853 <https://reviews.llvm.org/D117853>
for zlib), which is not leveraged yet.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133548
Files:
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/Options.td
lld/ELF/OutputSections.cpp
lld/docs/ReleaseNotes.rst
lld/docs/ld.lld.1
lld/test/ELF/compress-debug-sections-zstd.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133548.458941.patch
Type: text/x-patch
Size: 7006 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220909/dcf9fb0d/attachment.bin>
More information about the llvm-commits
mailing list