[PATCH v2] elf.h: Add ELFCOMPRESS_ZSTD

Fangrui Song maskray@google.com
Wed Aug 10 07:48:48 GMT 2022


>From the approved generic ABI proposal
https://groups.google.com/g/generic-abi/c/satyPkuMisk
("Add new ch_type value: ELFCOMPRESS_ZSTD").
---
Changes from v1
* Update description: the proposal has been approved
---
 elf/elf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elf/elf.h b/elf/elf.h
index 02a1b3f52f..8d1c7fe7e6 100644
--- 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.  */
-- 
2.37.1.559.g78731f0fdb-goog



More information about the Libc-alpha mailing list