HomeFreeBSD

Add ELFCOMPRESS_ZSTD ELF compression constant

Description

Add ELFCOMPRESS_ZSTD ELF compression constant

ELFCOMPRESS_ZSTD indicates that an ELF section is compressed with zstd.
It is the second compression type, after the existing ELFCOMPRESS_ZLIB.
Zstd generally provides a compelling tradeoff of speed and compression
(other algorithms may compress slightly better but take a lot longer,
or run faster but do not compress nearly as well).

See https://groups.google.com/g/generic-abi/c/satyPkuMisk for details.
ELFCOMPRESS_ZSTD will be supported in a future Clang/LLVM update. ELF
Tool Chain tools also need updating.

Reviewed by: Fangrui Song
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on Jun 28 2022, 1:06 PM
Differential Revision
D35870: Add ELFCOMPRESS_ZSTD constant
Parents
rG865a58d2fc89: stand/disk: Trivial formatting nit
Branches
Unknown
Tags
Unknown