]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf.h: Add ELFCOMPRESS_ZSTD
authorFangrui Song <maskray@google.com>
Thu, 11 Aug 2022 04:46:09 +0000 (21:46 -0700)
committerFangrui Song <maskray@google.com>
Thu, 11 Aug 2022 04:46:09 +0000 (21:46 -0700)
From the approved generic ABI proposal
https://groups.google.com/g/generic-abi/c/satyPkuMisk
("Add new ch_type value: ELFCOMPRESS_ZSTD").

Reviewed-by: Florian Weimer <fweimer@redhat.com>
elf/elf.h

index 02a1b3f52fdfa3d8d92fd4e3008316ab0a23f26d..8d1c7fe7e6059dce6a3922768bf22c3e171cd2cd 100644 (file)
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -506,6 +506,7 @@ typedef struct
 
 /* Legal values for ch_type (compression algorithm).  */
 #define ELFCOMPRESS_ZLIB       1          /* ZLIB/DEFLATE algorithm.  */
+#define ELFCOMPRESS_ZSTD       2          /* Zstandard algorithm.  */
 #define ELFCOMPRESS_LOOS       0x60000000 /* Start of OS-specific.  */
 #define ELFCOMPRESS_HIOS       0x6fffffff /* End of OS-specific.  */
 #define ELFCOMPRESS_LOPROC     0x70000000 /* Start of processor-specific.  */