* [ELF commit] Add new zstd compression algorithm
@ 2022-08-02 21:31 Cary Coutant
2022-08-02 22:43 ` Fangrui Song
0 siblings, 1 reply; 2+ messages in thread
From: Cary Coutant @ 2022-08-02 21:31 UTC (permalink / raw)
To: Binutils
In the gABI group, we have approved the addition of a new compression
type, using the zstd library (zstandard.org). I'm about to commit this
patch to add the new value to <elf/common.h>.
https://groups.google.com/g/generic-abi/c/satyPkuMisk/m/dP2pPh9mAwAJ
-cary
include/elf/
* common.h: Add ELFCOMPRESS_ZSTD.
diff --git a/include/elf/common.h b/include/elf/common.h
index e4bc53e35b4..ebcd8f9e82c 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -588,6 +588,8 @@
/* Compression types. */
#define ELFCOMPRESS_ZLIB 1 /* Compressed with zlib. */
+#define ELFCOMPRESS_ZSTD 2 /* Compressed with zstd */
+ /* (see http://www.zstandard.org). */
#define ELFCOMPRESS_LOOS 0x60000000 /* OS-specific semantics, lo */
#define ELFCOMPRESS_HIOS 0x6FFFFFFF /* OS-specific semantics, hi */
#define ELFCOMPRESS_LOPROC 0x70000000 /* Processor-specific semantics, lo */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ELF commit] Add new zstd compression algorithm
2022-08-02 21:31 [ELF commit] Add new zstd compression algorithm Cary Coutant
@ 2022-08-02 22:43 ` Fangrui Song
0 siblings, 0 replies; 2+ messages in thread
From: Fangrui Song @ 2022-08-02 22:43 UTC (permalink / raw)
To: Cary Coutant; +Cc: Binutils
On 2022-08-02, Cary Coutant via Binutils wrote:
>In the gABI group, we have approved the addition of a new compression
>type, using the zstd library (zstandard.org). I'm about to commit this
>patch to add the new value to <elf/common.h>.
>
>https://groups.google.com/g/generic-abi/c/satyPkuMisk/m/dP2pPh9mAwAJ
>
>-cary
>
>
>include/elf/
> * common.h: Add ELFCOMPRESS_ZSTD.
>
>
>diff --git a/include/elf/common.h b/include/elf/common.h
>index e4bc53e35b4..ebcd8f9e82c 100644
>--- a/include/elf/common.h
>+++ b/include/elf/common.h
>@@ -588,6 +588,8 @@
>
> /* Compression types. */
> #define ELFCOMPRESS_ZLIB 1 /* Compressed with zlib. */
>+#define ELFCOMPRESS_ZSTD 2 /* Compressed with zstd */
>+ /* (see http://www.zstandard.org). */
> #define ELFCOMPRESS_LOOS 0x60000000 /* OS-specific semantics, lo */
> #define ELFCOMPRESS_HIOS 0x6FFFFFFF /* OS-specific semantics, hi */
> #define ELFCOMPRESS_LOPROC 0x70000000 /* Processor-specific semantics, lo */
Thanks:)
Interested folks may help
https://sourceware.org/bugzilla/show_bug.cgi?id=29397 ("binutils: support zstd for SHF_COMPRESSED debug sections")
The build system change is probably the most difficult one ;-)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-02 22:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-02 21:31 [ELF commit] Add new zstd compression algorithm Cary Coutant
2022-08-02 22:43 ` Fangrui Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).